Part Number Hot Search : 
SA120 B45198E 383L2 EDT25 SK7N3 PF5005 AR0230 02201
Product Description
Full Text Search
 

To Download SAA6712E Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 INTEGRATED CIRCUITS
DATA SHEET
SAA6712E XGA RGB to TFT graphics engine
Preliminary specification File under Integrated Circuits, IC02 1999 Aug 25
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
CONTENTS 1 1.1 1.2 1.3 1.4 1.5 1.6 2 3 4 5 6 7 7.1 7.2 7.2.1 7.2.2 7.2.3 7.2.4 7.2.5 7.3 7.4 7.4.1 7.4.2 7.5 7.5.1 7.5.2 7.6 7.7 7.7.1 7.7.2 8 8.1 8.2 8.2.1 8.2.2 8.3 8.3.1 8.3.2 8.3.3 FEATURES RGB video input Video processing On screen display Video output Memory interface Miscellaneous GENERAL DESCRIPTION QUICK REFERENCE DATA ORDERING INFORMATION BLOCK DIAGRAM PINNING INFORMATION FUNCTIONAL DESCRIPTION Data path System clocks Input interface clock (VCLK) Memory interface clock (MCLKI) I2C-bus interface clock (SCL) System clock (CLK) TFT panel clock (PCLK) RGB input port TFT output port Single pixel mode Double pixel mode Memory port SDRAM memory configuration SGRAM memory configuration I2C-bus interface Scaling algorithm Upscaling Downscaling SYSTEM DESCRIPTION Programming registers Clock management Clock generation and multiplexing Clock divider RGB input interface RGB data sampling Clamp pulse generation Gain correction pulse generation 8.4 8.5 8.5.1 8.5.2 8.5.3 8.6 8.6.1 8.6.2 8.6.3 8.7 8.8 8.8.1 8.8.2 8.8.3 8.8.4 8.9 8.10 8.10.1 8.10.2 8.10.3 8.11 8.12 8.12.1 8.12.2 8.12.3 9 10 11 12 13 14 14.1 14.2 14.3 14.4 14.5 15 16 17
SAA6712E
Video mode and synchronization signal detection Memory interface Memory interface limitations Initialization of external memory Frame recovery Scaling Downscaling Upscaling Upscaler transition function Panning unit Overlay port Overlay insertion Sync generation Data sampling OVCLK gating Colour correction On screen display OSD generals OSD window OSD character matrix Temporal dithering (frame rate controller) Output interface General Frame generation Timing reference signals LIMITING VALUES CHARACTERISTICS TIMING CHARACTERISTICS APPLICATION INFORMATION PACKAGE OUTLINE SOLDERING Introduction to soldering surface mount packages Reflow soldering Wave soldering Manual soldering Suitability of surface mount IC packages for wave and reflow soldering methods DEFINITIONS LIFE SUPPORT APPLICATIONS PURCHASE OF PHILIPS I2C COMPONENTS
1999 Aug 25
2
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
1 1.1 FEATURES RGB video input
SAA6712E
* Digital single (24-bit) or dual (48-bit) channel RGB input * Data input of sampled RGB data with a pixel frequency of maximum 150 MHz * Free definable data acquisition offsets and vertical window size in single pixel increments, horizontal window size in double pixel increments * Programmable pulses for ADC clamping and ADC gain correction * Detection of presence of sync signals, and of their polarities * Support for auto-adjustment functions for sample clock frequency, phase, vertical and horizontal sample offset, as well as colour adjustment * Maximum supported resolution of 1280 x 1024 dots Super Extended Graphics Adapter (SXGA) * Support for detection of the applied graphics mode (auto-scan). 1.2 Video processing 1.4 Video output * Single pixel/clock (24-bit) or double pixel/clock (48-bit) digital RGB output * Generation of synchronization and validation signals for the Thin Film Transistor (TFT) display * Frame rate control (temporal dithering) for displaying true colour graphics on high colour displays * Free programmable timing for displays of several manufacturers. 1.5 Memory interface
* Support of both 1M x 16 SDRAM, 256k x 32 SGRAM or 128k x 32 SGRAM devices * Maximum memory clock frequency of 125 MHz * Scalable memory size built of either 2, 3 or 4 SDRAM, or of 1 or 2 SGRAM devices * Special mode for operation without external memory. 1.6 Miscellaneous
* Colour correction Look-Up Table (LUT) * Phase correct up and downscaling of the RGB data * Fully programmable scaling ratios * Independent horizontal and vertical scaling engine * Free definable position of the scaled input picture inside the output picture with programmable border colour. 1.3 On screen display
* Internal Phase-Locked Loop (PLL) for memory and panel clock generation from the system clock * I2C-bus interface with 2 selectable addresses * Boundary scan test circuit and Joint Test Action Group (JTAG) test controller * Pin compatible to SAA6721E * Programming compatible to SAA6721E.
* Character based internal On Screen Display (OSD) * Programmable character matrix sizes of either 24 x 24 pixels (42 characters available) or 12 x 16 pixels (128 characters available) * Programmable width and height of the OSD window, built from maximum 1152 characters * 8 different colours for foreground and background inclusive transparent colours * Overlay port for external OSD controller.
1999 Aug 25
3
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
2 GENERAL DESCRIPTION
SAA6712E
The SAA6712E must be embedded into a system containing a microcontroller with an I2C-bus serial interface. For auto-scan capabilities a frame buffer built from SGRAM or SDRAM is needed. The size of this frame buffer depends on the maximum resolution and bandwidth needed for the application. For converting the analog RGB stream into a digital data stream one or two ADCs with 3 channels each for R, G and B are needed.
The SAA6712E is a graphics engine, which converts digital RGB data into video signals suitable for TFT displays. It supports SXGA input resolution as well as true colour. Independent horizontal and vertical up and downscaling can display the input data arbitrarily on the connected TFT display. Auto-scan capability allows the applied graphics mode to be detected. Overlay signals can be generated either by an internal OSD generator or supplied via the overlay port from an external OSD controller. 3 QUICK REFERENCE DATA SYMBOL VDDD IDDD Vi Vo Tamb 4 PARAMETER digital supply voltage digital supply current input voltages output voltages memory port output voltages TFT port ambient temperature
MIN. 3.0 - 3.3 600
TYP. 3.6
MAX. V mA 840
UNIT
LVTTL compatible LVTTL compatible CMOS compatible 0 - 70 C
ORDERING INFORMATION PACKAGE TYPE NUMBER NAME DESCRIPTION plastic ball grid array package; 292 balls; body 27 x 27 x 1.75 mm VERSION SOT489-1
SAA6712E
BGA292
1999 Aug 25
4
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in _white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ... 1999 Aug 25
MODE/SYNC DETECTION input frame size and sync information AUTO ADJUSTMENT CONTROLLER VCLK VVS VHS CLAMP GAINC VPA7 to VPA0 VPB7 to VPB0 VPC7 to VPC0 VPD7 to VPD0 PBR7 to PBR0 VPE7 to VPE0 VPF7 to VPF0 OUTPUT INTERFACE PBG7 to PBG0 PBB7 to PBB0 PVS PHS PDE DIVIDER panel clock PCLK RGB INPUT INTERFACE RGB data DOWNSCALER UPSCALER COLOUR CORRECTION PANNING UNIT OSD OVERLAY PORT RGB raw data frequency, phase and colour information LINE MEMORY SDRAM MEMORY INTERFACE
5
Philips Semiconductors
handbook, full pagewidth
OVA2 to OVA0 OVVS SDA SCL SAD INT RST TDO TDI TMS TCLK OVACT TRST OVB2 to OVB0 OVHS OVCLK I2C-BUS INTERFACE GLOBAL CONTROL UNIT JTAG CONTROLLER
XGA RGB to TFT graphics engine
BLOCK DIAGRAM
5
ON SCREEN DISPLAY
TEMPORAL DITHERING
PAR7 to PAR0 PAG7 to PAG0 PAB7 to PAB0
SAA6712E
MCLKI
/2
CLK PLL
memory clock
Preliminary specification
MHB456
DQ63 to DQ0
BA
RAS CAS
WE
SAA6712E
DQM A10 to A0
MCLKO
Fig.1 Block diagram.
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
6 PINNING INFORMATION
SAA6712E
MHB458
handbook, halfpage
Y V
W U T R P N M L K J H G F E D C B A 1 2 3 4 5 6 7
SAA6712E
8
9
10 12 14 16 18 20 11 13 15 17 19
Fig.2 Pin configuration (bottom view).
Table 1 SYMBOL VCLK VVS VHS VPA7 VPA6 VPA5 VPA4 VPA3 VPA2 VPA1 VPA0 Pin N1 M3 M2 C7 A6 B6 C6 A5 D5 B5 C5 PORT RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input I/O(1) input input input input input input input input input input input RGB sample clock RGB vertical sync RGB horizontal sync video input port A; RGB port 0 red channel DESCRIPTION
1999 Aug 25
6
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
Pin A4 B4 C4 A3 B3 C3 A2 B2 B1 C2 C1 D3 D2 D1 E3 E2 E4 E1 F3 F2 F1 G3 G2 G4 G1 H3 H2 H1 J2 J4 J1 K3 K2 K1 L1 L4 L2 L3 M1 M4
SAA6712E
SYMBOL VPB7 VPB6 VPB5 VPB4 VPB3 VPB2 VPB1 VPB0 VPC7 VPC6 VPC5 VPC4 VPC3 VPC2 VPC1 VPC0 VPD7 VPD6 VPD5 VPD4 VPD3 VPD2 VPD1 VPD0 VPE7 VPE6 VPE5 VPE4 VPE3 VPE2 VPE1 VPE0 VPF7 VPF6 VPF5 VPF4 VPF3 VPF2 VPF1 VPF0
PORT RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input RGB input
I/O(1) input input input input input input input input input input input input input input input input input input input input input input input input input input input input input input input input input input input input input input input input
DESCRIPTION video input port B; RGB port 0 green channel
video input port C; RGB port 0 blue channel
video input port D; RGB port 1 red channel
video input port E; RGB port 1 green channel
video input port F; RGB port 1 blue channel
1999 Aug 25
7
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
Pin N2 N3 Y13 V12 U12 P1 P4 P2 P3 R1 R2 R3 T1 T4 T2 T3 U1 U2 V1 V2 W1 Y1 W2 Y2 V3 W3 Y3 V4 Y4 V5 W5 Y5 V6 W6 Y6 V7 W7
SAA6712E
SYMBOL CLAMP GAINC PCLK PVS PHS PDE PAR7 PAR6 PAR5 PAR4 PAR3 PAR2 PAR1 PAR0 PAG7 PAG6 PAG5 PAG4 PAG3 PAG2 PAG1 PAG0 PAB7 PAB6 PAB5 PAB4 PAB3 PAB2 PAB1 PAB0 PBR7 PBR6 PBR5 PBR4 PBR3 PBR2 PBR1 PBR0
PORT RGB input RGB input panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface
I/O(1) output output output output output output output output output output output output output output output output output output output output output output output output output output output output output output output output output output output output output output
DESCRIPTION clamp pulse for analog-to-digital converter gain correction pulse for analog-to-digital converter panel clock panel vertical sync panel horizontal sync panel data enable panel port A red channel
W12 panel interface
panel port A green channel
panel port A blue channel
panel port B red channel
1999 Aug 25
8
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
Pin Y7 V8 W8 Y8 V9 W9 U9 Y9 V10 Y10 Y11 U11 V11 Y12 V18 W18 Y17 Y16 V15 V16 Y14 V13 Y15 V14 A17 A18 C17 D16 T17 overlay overlay overlay overlay overlay overlay overlay memory interface memory interface memory interface memory interface memory interface W16 overlay
SAA6712E
SYMBOL PBG7 PBG6 PBG5 PBG4 PBG3 PBG2 PBG1 PBG0 PBB7 PBB6 PBB5 PBB4 PBB3 PBB2 PBB1 PBB0 SCL SDA SAD OVCLK OVVS OVHS OVACT OVA0 OVA1 OVA2 OVB0 OVB1 OVB2 MCLKO RAS CAS WE DQM
PORT panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface panel interface I2C-bus interface
I/O(1) output output output output output output output output output output output output output output output output input input/output input output output output input input input input input input input output output output output output
DESCRIPTION panel port B green channel
panel port B blue channel
W10 panel interface
W11 panel interface
I2C-bus interface clock line I2C-bus interface data line I2C-bus address select: 0 = 74H, 1 = 76H overlay port clock overlay port vertical sync overlay port horizontal sync overlay port pixel active overlay port input pixel A
W13 overlay
overlay port input pixel B
W14 overlay
memory clock output memory Row Address Strobe (RAS) signal (active LOW) memory Column Address Strobe (CAS) signal (active LOW) memory Write Enable (WE) signal (active LOW) memory data mask (active LOW)
1999 Aug 25
9
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
Pin A20 C20 D20 E19 F18 E17 E18 C19 C18 D18 B19 A19
SAA6712E
SYMBOL A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 BA DQ0 DQ1 DQ2 DQ3 DQ4 DQ5 DQ6 DQ7 DQ8 DQ9 DQ10 DQ11 DQ12 DQ13 DQ14 DQ15 DQ16 DQ17 DQ18 DQ19 DQ20 DQ21 DQ22 DQ23 DQ24 DQ25 DQ26 DQ27 DQ28 1999 Aug 25
PORT memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface
I/O(1) output output output output output output output output output output output output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output 10 memory bank select memory data bus
DESCRIPTION memory address bus
M20 memory interface M19 memory interface N20 N19 P19 R19 T20 T19 T18 R18 P18 P17 N18 memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface
M18 memory interface M17 memory interface L19 E20 F20 H20 J20 K19 K20 L20 K17 K18 J19 J18 H19 memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface
G20 memory interface
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
Pin H18 F19 A12 B12 A13 B13 A14 B14 A15 B15 A16 C15 C14 D14 C13 C12 D12 C11 B7 A7 B8 A8 B9 A9 B10 A10 B11 A11 D10 C10 D9 C9 C8 D7 U19 W17 U18 V19 W19
SAA6712E
SYMBOL DQ29 DQ30 DQ31 DQ32 DQ33 DQ34 DQ35 DQ36 DQ37 DQ38 DQ39 DQ40 DQ41 DQ42 DQ43 DQ44 DQ45 DQ46 DQ47 DQ48 DQ49 DQ50 DQ51 DQ52 DQ53 DQ54 DQ55 DQ56 DQ57 DQ58 DQ59 DQ60 DQ61 DQ62 DQ63 TCLK TRST TDI TMS TDO
PORT memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface memory interface JTAG test controller
I/O(1) input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input/output input input input input output memory data bus
DESCRIPTION
G18 memory interface
JTAG test controller clock; note 2 JTAG test controller reset (active LOW); note 2 JTAG test data input; note 2 JTAG test mode select; note 2 JTAG test data output
1999 Aug 25
11
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
Pin Y19 Y20 Y18 W20 A1 D4 D8 D13 D17 H4 H17 N4 N17 U4 U8 U13 U17 VDDD D6 D11 D15 F4 F17 K4 L17 R4 R17 U6 U10 U15 VSS(PLL) VDD(PLL) n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. 1999 Aug 25 V17 U16 B16 B17 B18 B20 C16 D19 - - - - - - - - - - - - - - - - - - - - 12 - - digital supply voltage -
SAA6712E
SYMBOL CLK RST INT MCLKI VSSD
PORT miscellaneous
I/O(1) input input output input -
DESCRIPTION system and panel clock system reset (active LOW) mode detection interrupt (active LOW) memory clock input digital ground supply
ground supply for internal PLL circuitry supply voltage for internal PLL circuitry not connected not connected not connected not connected not connected not connected not connected not connected not connected not connected
G17 - G19 - J3 J17 - -
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
Pin L18 P20 R20 U3 U5 U7 U14 U20 V20 W4 - - - - - - - - - -
SAA6712E
SYMBOL n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. Notes
PORT - - - - - - - - - - -
I/O(1) not connected not connected not connected not connected not connected not connected not connected not connected not connected not connected not connected
DESCRIPTION
W15 -
1. Generally all inputs are 5 V tolerant TTL inputs. All outputs are CMOS, except the memory interface ports, which are LVTTL compatible. 2. Connect to ground when not using the JTAG controller. 7 7.1 FUNCTIONAL DESCRIPTION Data path 7.2 7.2.1 System clocks INPUT INTERFACE CLOCK (VCLK)
Input video data is sampled either as RGB data in single pixels from only one ADC or in double pixels in interleaved format from two ADCs. The clock for sampling the data will always be provided from external circuitry. The video stream will be adapted from the input frame rate to the output frame rate needed by the panel. Therefore a frame buffer built of SDRAMs or SGRAMs is used. If the panel supports the incoming frame rate from the RGB port, the adaption can be done without external memory. If zooming must be performed the upscaler behind the memory interface will be enabled. For downscaling the downscaler in front of the memory interface in the data path will be used. A colour correction can be done via a look-up table. The resulting video stream can now be positioned elsewhere in the output data stream by the panning unit. If an external OSD controller is embedded into the system, its OSD window will be put into the video stream by the OSD overlay port. Additionally the internal OSD will be inserted in the next stage. The temporal dithering allows true colour pictures to be displayed on high colour panels. The output interface provides the timing and control signals necessary for the connected panel.
This clock is used for sampling the incoming RGB data stream. In RGB mode this clock varies from 25 to 150 MHz in single ADC mode. If two ADCs are used the RGB input clock is between 12.5 and 75 MHz. The RGB clock can be generated by the external ADCs or an external video PLL. 7.2.2 MEMORY INTERFACE CLOCK (MCLKI)
The memory clock is the synchronous clock for the external frame buffer. Depending on the bandwidth needed by the application, and the connected SDRAM or SGRAM devices, the clock varies from 83 to 125 MHz. It can be generated internally by the PLL from the system clock (CLK), or by an external quartz oscillator. If the internal PLL is used, the memory clock frequency can be derived from the following formula: f_system f_memory = ----------------------- x 16 N Where N = pre-divider ratio and f_system = clock at pin CLK.
1999 Aug 25
13
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
7.2.3 I2C-BUS INTERFACE CLOCK (SCL)
SAA6712E
Therefore ports VPD7 to VPD0, VPE7 to VPE0, and VPF7 to VPF0 are also needed. The VPA/B/C ports are sampled on the rising edge of the RGB input clock (VCLK), and the VPD/E/F ports on the falling edge (see Fig.3). The synchronization pulses from the graphics card are used to identify the frame outline. The vertical synchronization pulse is connected to pin VVS, and the horizontal synchronization pulse is connected to pin VHS. For calibrating the connected Analog-to-Digital Converter (ADC) the SAA6712E delivers a clamp pulse at pin CLAMP, and a gain correction pulse at pin GAINC (see Fig.4). The sample window of the RGB input port is controlled by four counters; horizontal and vertical offset, and horizontal and vertical window size. The offset counters start at the inactive or second edge of their corresponding synchronization signal.
This clock drives the interface to the external microcontroller. Its frequency range is from 100 kHz to 1 MHz. 7.2.4 SYSTEM CLOCK (CLK)
This clock is used to drive the internal PLL. The frequency range is from 24 to 50 MHz. 7.2.5 TFT PANEL CLOCK (PCLK)
This clock is the timing reference for the panel. The frequency is the same as the system clock, or it can be generated from the internal PLL by using the following formula: f_system 32 f_tft = ----------------------- x ----N M Where N = pre-divider ratio and M = post-divider ratio. 7.3 RGB input port
The RGB input port can operate in two modes; single pixel mode (24 bits) and double pixel mode (48 bits). For single pixel mode only ports VPA7 to VPA0, VPB7 to VPB0, and VPC7 to VPC0 are internally sampled. For double pixel mode two pixels must be provided at the RGB input port.
handbook, full pagewidth
VCLK
VPA/B/C
VPD/E/F
MHB243
Fig.3 RGB input port timing.
1999 Aug 25
14
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
handbook, full pagewidth
VHS
RGB data
blanking
GAINC
CLAMP
MHB244
Fig.4 Clamp and gain correction pulses.
7.4
TFT output port
The TFT output port consists of two pixel ports (A and B), each containing red, green and blue colour information with a resolution of 8 bits per colour. The first pixel port is mapped to PAR7 to PAR0, PAG7 to PAG0, and PAB7 to PAB0. The second port is mapped to PBR7 to PBR0, PBG7 to PBG0, and PBB7 to PBB0. The vertical and horizontal synchronization signals are mapped to pins PVS and PHS. A data validation signal framing visible pixels is available at pin PDE. All of the above mentioned signals are synchronized to the output clock at pin PCLK. The active edge of this clock is programmable. 7.4.1 SINGLE PIXEL MODE
125 MHz. This clock can be provided either by the internal PLL, or externally be applied to pin MCLKI. The memory data bus is split into 4 ports: port 0 (DQ0 to DQ15), port 1 (DQ16 to DQ31), port 2 (DQ32 to DQ47) and port 3 (DQ48 to DQ63). To adapt the external memory to the needs of the application by means of memory size and bandwidth, it is possible to scale the external memory by using only the number of subsequent ports needed to build up the frame buffer and to achieve the memory bandwidth. As a second step for bandwidth optimization several speed grades of memory devices can be used. 7.5.1 SDRAM MEMORY CONFIGURATION
The single pixel mode is designed to support TFT panels with single pixel input, and for direct connection of panel link transmitters. Only the first pixel port PAR7 to PAR0, PAG7 to PAG0, and PAB7 to PAB0 is used. The data is applied at double the frequency in comparison to the double pixel output mode. 7.4.2 DOUBLE PIXEL MODE
SDRAMs are available in sizes from 16 Mbits. For this application a wide data bus is required, so that at least 1M x 16 devices must be used. To achieve the desired bandwidth, 2 to 4 devices must be used in parallel, which results in a frame buffer size of 4 to 8 Mbytes. But only half of this memory will be used by the SAA6712E. The memory port of the SAA6712E can be divided into 4 SDRAM channels. Each channel is 16 bits wide, and provides in High Speed Channel (HSC) mode with a 125 MHz memory clock and an effective bandwidth of 228 Mbits/s. A Medium Speed Channel (MSC) with a 100 MHz memory clock gives an effective bandwidth of 182 Mbits/s, 91% effective bandwidth assumed. Table 2 gives the channel configuration for several input and panel resolutions.
The double pixel mode is used for direct connection of TFT panels with double pixel input. Both output ports are used. The first pixel is applied at port A, and the second at port B. 7.5 Memory port
The memory port connects the SAA6712E to the external frame buffer. This frame memory can be built from either 1M x 16 SDRAM or 256k x 32 SGRAM devices. Supported are RAM devices with clock frequencies up to 1999 Aug 25 15
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
Table 2 SDRAM channel configurations SVGA (800 x 600) 60 Hz 288 Mbits/s bandwidth; 2 x HSC or 2 x MSC 75 Hz 319 Mbits/s bandwidth; 2 x HSC or 2 x MSC XGA (1024 x 768) 60 Hz 411 Mbits/s bandwidth; 2 x HSC or 3 x MSC 75 Hz 452 Mbits/s bandwidth; 2 x HSC or 3 x MSC
SAA6712E
INPUT RESOLUTION Panel XGA(1)
SXGA (1280 x 1024) 60 Hz 475 Mbits/s bandwidth; 3 x HSC or 3 x MSC 75 Hz 540 Mbits/s bandwidth; 3 x HSC or 3 x MSC
2 Mbits frame buffer needed
3 Mbits frame buffer needed
4 Mbits frame buffer needed
Note 1. 36 MHz clock frequency. 7.5.2 SGRAM MEMORY CONFIGURATION Each channel gives, in HSC mode with 125 MHz clock frequency, an effective bandwidth of 456 Mbits/s; and in MSC mode, with 100 MHz clock speed, an effective bandwidth of 364 Mbits/s. Table 3 gives the channel configuration for several input and panel resolutions.
SGRAM devices organized to 256k x 32 bits are available, and feature the wide data bus for high speed applications. With these devices a frame buffer can be built, without wasting memory because of bandwidth. In case of SGRAM usage, the memory data bus of the SAA6712E can be split into 2 channels of 32 bits each. Table 3 SGRAM channel configurations SVGA (800 x 600) 60 Hz 288 Mbits/s bandwidth; 1 x HSC or 1 x MSC 75 Hz 319 Mbits/s bandwidth; 1 x HSC or 1 x MSC
INPUT RESOLUTION Panel XGA(1)
XGA (1024 x 768) 60 Hz 411 Mbits/s bandwidth; 1 x HSC or 2 x MSC 75 Hz 452 Mbits/s bandwidth; 1 x HSC or 2 x MSC
SXGA (1280 x 1024) 60 Hz 475 Mbits/s bandwidth; 2 x HSC or 2 x MSC 75 Hz 540 Mbits/s bandwidth; 2 x HSC or 2 x MSC
2 Mbits frame buffer needed
3 Mbits frame buffer needed
4 Mbits frame buffer needed
Note 1. 36 MHz clock frequency.
1999 Aug 25
16
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
7.6 I2C-bus interface
SAA6712E
If the SAA6712E reads its device address, it acknowledges this by sending a single bit ACK to the master. If write mode was selected, the master sends the register address to be written and then the data bytes. If read mode was selected, the SAA6712E sends the data bytes starting from the last address accessed either by write command or the next address at a read command. All byte transfers are acknowledged from the receiving device. The data transfer is aborted by sending a STOP condition, when SDA changes from LOW to HIGH when SCL is HIGH (see Fig.6). If a new address has to be read or written, it is possible to send a new START condition without a preceding STOP condition. In this case the bus is still occupied by the master, and it can initiate a new data transfer. This is useful for read activities, where at first the register address must be sent in write mode and after that a read command will be sent to read data from this and following addresses. If the data transfer was a read transfer and the master was receiver, the master must not generate an acknowledge before the STOP condition.
This serial interface consists of only two signals, the serial clock line (SCL) and the serial data line (SDA). The maximum supported frequency on this bus is 1 MHz. Spikes with a maximum pulse length of 50 ns are suppressed by the internal input filter. The SAA6712E operates as a slave and cannot initiate any data transfer, so the clock line is always input. Via the data line, data is transmitted and received, so this pin must be input/output. The SCL and SDA lines are driven by open-drain stages and pull-up resistors. When a logic 0 is applied, the bus is set to ground level via the output buffers. When a logic 1 is applied, the output buffer switches to 3-state and the pull-up resistors pull the bus up to +5 V. Data transfer changes on SDA are allowed only when SCL is LOW. Data is sampled on the positive edge of SCL. In Idle state the output buffers are in 3-state, and the bus is HIGH. A data transfer must be initiated by an I2C-bus master device. This is done by sending a START condition when SDA changes from HIGH to LOW when SCL is HIGH (see Fig.5). The device address of the SAA6712E must then be sent with the desired I/O direction.
handbook,SCL full pagewidth
SDA
A6
A5
A4
A3
A2
A1
A0
R/W
ACK
R7
R6
R5
MHB248
START condition
acknowledge
Fig.5 Start of a data transfer.
handbook, full pagewidth SCL
SDA
D1
D0
ACK
D7
D6
D5
D4
D3
D2
D1
D0
A/A
acknowledge/ not acknowledge
STOP condition
MHB249
Fig.6 End of a data transfer.
1999 Aug 25
17
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
7.7 Scaling algorithm 7.7.2 DOWNSCALING
SAA6712E
The SAA6712E features different scaling engines for up and downscaling, for both horizontal and vertical processing. The horizontal scaling engines are independent from each other. The vertical scaling engines share the line buffer, so they cannot operate in parallel. 7.7.1 UPSCALING
The downscaling engine is used for reducing the incoming RGB data stream, i.e. for displaying high resolution input frames on panels with a smaller resolution. The scaling ratio can be programmed independently for both horizontal and vertical downscaling units. The algorithm uses pixel accumulation, achieving a minimum scaling factor of 164.
The upscaling engine is used for enlarging the incoming video frames. The magnification can be programmed individually for horizontal and vertical scaling. The maximum scaling factor for both directions is 64. The implemented filter algorithm (see Fig.7) uses interpolation with pixel enhancement, based on a free programmable transition function. It is therefore possible to define the transition between two calculated pixels to obtain different sharpness characteristics. This transition function must be defined in the 7 bits x 64 look-up table, with a number ranging from 0 to 64. Different functions can be programmed for horizontal and vertical scaling.
handbook, full pagewidth
intensity of output pixel O 100% A, 0% B
(3)
MHB250
A
B
(2)
O 0% A, 100% B 100% A, 0% B
(1)
0% A, 100% B
ratio between input pixels A, B
(1) The linear interpolation results in smoothing the sharp edges of the original picture if a pixel must be calculated. (2) Some kind of 1x function results in sharper edges, because of the smaller transition interval. (3) Phase correct pixel repetition can be done with this function.
Fig.7 Interpolation function definition.
1999 Aug 25
18
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
8 8.1 SYSTEM DESCRIPTION Programming registers Table 4 MSB 0 1 1 1 0 I2C-bus device address
SAA6712E
LSB 1 SAD R/W
The SAA6712E is a highly integrated device with many features. To get the desired functionality and performance it must be programmed correctly. In general, before programming, the device must be switched to the internal reset state to prevent unwanted functions while changing the registers. After writing to all registers the internal reset can be released. There are some registers (mainly offset counters) that can be changed during data processing without an internal reset. All accesses to the on screen display can be done during data processing. Table 5 Programming register overview D7 D6 D5
When bit SAD = 0 the address is 74H; when bit SAD = 1 the address is 76H. Table 5 shows the programming model.
ADDRESS R/W State 0 1 2 3 R R R
D4
D3
D2
D1
D0
reserved reserved intr
R/W iic_test_register[7 to 0]
RGB mode detection 4 5 6 7 8 R R R R R h_clocks[7 to 0] h_clocks[11 to 8] v_lines[7 to 0] v_lines[10 to 8] pos_ vsync pos_ hsync no_ vsync no_ hsync
RGB auto-adjustment 9 10 11 12 13 14 15 16 17 18 19 20 21 1999 Aug 25 W W W W W R R R R R R R R 19 non_black_lines[7 to 0] non_black_lines[10 to 8] ref_colour[7 to 0] ref_pixel_red[7 to 0] ref_pixel_green[7 to 0] ref_pixel_blue[7 to 0] black_lines[7 to 0] black_pixels[7 to 0] black_ pixels[8] ref_pixel[7 to 0] ref_pixel[11 to 8] ref_line[7 to 0] ref_line[10 to 8]
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
ADDRESS R/W 22 23 R R
D7
D6
D5
D4
D3
D2
D1
D0
non_black_pixels[7 to 0] non_black_pixels[11 to 8]
General configuration 24 W intr_clear single_ no_ adc_mode memory_ mode memory_ init reset_ reset_ input_path memory_ path frc_on blank_ screen reset_ proc_path power_ down
25
W
Clock distribution 26 27 28 29 30 31 32 W W W W W W W post_div_clock_p_high[3 to 0] post_div_clock_n_high[3 to 0] por_mclk pre_div_ enable post_div_ enable pre_div_ half_clock post_div_ half_clock pll_enable pll_pclk pll_mclk
pre_div_clock_p_high[3 to 0] pre_div_clock_n_high[3 to 0]
pre_div_clock_p_low[3 to 0] pre_div_clock_n_low[3 to 0] pre_div_clock_n_offs[3 to 0] post_div_clock_p_low[3 to 0] post_div_clock_n_low[3 to 0] post_div_clock_n_offs[3 to 0]
Input interface 33 W in_form_ on not used v_offset[7 to 0] v_offset[10 to 8] h_offset[7 to 0] h_offset[11 to 8] v_length[7 to 0] v_length[10 to 8] h_length[7 to 0] h_length[11 to 8] clamp_on[7 to 0] clamp_off[7 to 0] gainc_on_delay[7 to 0] gainc_off_delay[7 to 0] adc_ sample_ seq gainc_pol clamp_pol vs_pol hs_pol
34 35 36 37 38 39 40 41 42 43 44 45 46
W W W W W W W W W W W W W
Colour correction 47 W red_prog green_ prog blue_prog colour_ correction _on
48 49
W W(1)
colour_index[7 to 0] colour_value[7 to 0]
1999 Aug 25
20
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
ADDRESS R/W
D7
D6
D5
D4
D3
D2
D1
D0
Memory controller unit 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 Scaler 75 W down_v_ scaler_ mem up_v_incr[7 to 0] up_v_incr[11 to 8] up_v_corr[6 to 0] up_h_incr[7 to 0] up_h_incr[11 to 8] up_h_corr[6 to 0] down_v_incr[5 to 0] down_v_corr[6 to 0] down_h_incr[5 to 0] down_h_corr[6 to 0] up_v_ up_h_ up_v_ coeff_prog coeff_prog scaler_on up_h_ scaler_on down_v_ scaler_on down_h_ scaler_on W W W W W W W W W W W W W W W W W W W W W W W W W blank_colour_red[7 to 0] blank_colour_green[7 to 0] blank_colour_blue[7 to 0] line_length[7 to 0] line_length[11 to 8] field_column[7 to 0] not used not used not used not used not used not used not used not used not used frame_length[7 to 0] frame_length[10 to 8] SDRAM_burst_length_code[2 to 0] CAS_latency[2 to 0] t_RRD[3 to 0] t_WR[3 to 0] field_row[7 to 0] field_row[10 to 8] data_width[1 and 0] burst_seq_length[3 to 0] SDRAM_burst_length[3 to 0] t_RCD[3 to 0] t_RP[3 to 0] t_RC[3 to 0]
76 77 78 79 80 81 82 83 84 85
W W W W W W W W W W
1999 Aug 25
21
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
ADDRESS R/W 86 87 Panning unit 88 89 90 91 92 93 94 95 96 97 98 W W W W W W W W W W W W W(1)
D7
D6
D5
D4
D3
D2
D1
D0
coeff_index[5 to 0] coeff_value[6 to 0]
pic_v_offset[7 to 0] pic_v_offset[10 to 8] pic_h_offset[7 to 0] pic_h_offset[11 to 8] out_v_size[7 to 0] out_v_size[10 to 8] out_h_size[7 to 1] out_h_size[11 to 8] border_colour_red[7 to 0] border_colour_green[7 to 0] border_colour_blue[7 to 0] 0
OSD overlay port 99 W ovl_clk_ pol ovl_act_ pol ovl_vs_ pol ovl_hs_ pol clk_ gating_on sample_ edge ovl_ syncs_ active ovl_ insert_ active
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
W W W W W W W W W W W W W W W W W W W W W W
ovl_hs_start[7 to 0] ovl_hs_start[10 to 8] ovl_hs_length[7 to 0] ovl_hs_length[10 to 8] ovl_hs_latency[7 to 0] ovl_h_length[7 to 0] ovl_h_length[10 to 8] ovl_v_offset[7 to 0] ovl_v_offset[10 to 8] ovl_v_length[7 to 0] ovl_v_length[10 to 8] ovl_vs_start[7 to 0] ovl_vs_start[10 to 8] ovl_colour0_red[7 to 0] ovl_colour0_green[7 to 0] ovl_colour0_blue[7 to 0] ovl_colour1_red[7 to 0] ovl_colour1_green[7 to 0] ovl_colour1_blue[7 to 0] ovl_colour2_red[7 to 0] ovl_colour2_green[7 to 0] ovl_colour2_blue[7 to 0]
1999 Aug 25
22
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
ADDRESS R/W 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 W W W W W W W W W W W W W W W
D7
D6
D5
D4
D3
D2
D1
D0
ovl_colour3_red[7 to 0] ovl_colour3_green[7 to 0] ovl_colour3_blue[7 to 0] ovl_colour4_red[7 to 0] ovl_colour4_green[7 to 0] ovl_colour4_blue[7 to 0] ovl_colour5_red[7 to 0] ovl_colour5_green[7 to 0] ovl_colour5_blue[7 to 0] ovl_colour6_red[7 to 0] ovl_colour6_green[7 to 0] ovl_colour6_blue[7 to 0] ovl_colour7_red[7 to 0] ovl_colour7_green[7 to 0] ovl_colour7_blue[7 to 0]
On screen display 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 1999 Aug 25 W W W W W W W W W W W W W W W W W W W W W W W W osd_v_size[5 to 0] osd_h_size[5 to 0] osd_fg_colour0_red[7 to 0] osd_fg_colour0_green[7 to 0] osd_fg_colour0_blue[7 to 0] osd_fg_colour1_red[7 to 0] osd_fg_colour1_green[7 to 0] osd_fg_colour1_blue[7 to 0] osd_fg_colour2_red[7 to 0] osd_fg_colour2_green[7 to 0] osd_fg_colour2_blue[7 to 0] osd_fg_colour3_red[7 to 0] osd_fg_colour3_green[7 to 0] osd_fg_colour3_blue[7 to 0] osd_fg_colour4_red[7 to 0] osd_fg_colour4_green[7 to 0] osd_fg_colour4_blue[7 to 0] osd_fg_colour5_red[7 to 0] osd_fg_colour5_green[7 to 0] 23 osd_h_offset[7 to 0] osd_h_offset[11 to 8] osd_v_offset[7 to 0] osd_v_offset[10 to 8] zoom2 char_size osd_ active
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
ADDRESS R/W 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 W W W W W W W W W W W W W W W W W W W W W W W W W W W W W W W W
D7
D6
D5
D4
D3
D2
D1
D0
osd_fg_colour5_blue[7 to 0] osd_fg_colour6_red[7 to 0] osd_fg_colour6_green[7 to 0] osd_fg_colour6_blue[7 to 0] osd_fg_colour7_red[7 to 0] osd_fg_colour7_green[7 to 0] osd_fg_colour7_blue[7 to 0] osd_bg_colour0_red[7 to 0] osd_bg_colour0_green[7 to 0] osd_bg_colour0_blue[7 to 0] osd_bg_colour1_red[7 to 0] osd_bg_colour1_green[7 to 0] osd_bg_colour1_blue[7 to 0] osd_bg_colour2_red[7 to 0] osd_bg_colour2_green[7 to 0] osd_bg_colour2_blue[7 to 0] osd_bg_colour3_red[7 to 0] osd_bg_colour3_green[7 to 0] osd_bg_colour3_blue[7 to 0] osd_bg_colour4_red[7 to 0] osd_bg_colour4_green[7 to 0] osd_bg_colour4_blue[7 to 0] osd_bg_colour5_red[7 to 0] osd_bg_colour5_green[7 to 0] osd_bg_colour5_blue[7 to 0] osd_bg_colour6_red[7 to 0] osd_bg_colour6_green[7 to 0] osd_bg_colour6_blue[7 to 0] osd_bg_colour7_red[7 to 0] osd_bg_colour7_green[7 to 0] osd_bg_colour7_blue[7 to 0] osd_fg_ colour7_ transp osd_fg_ colour7_ alpha osd_bg_ colour7_ transp osd_fg_ colour6_ transp osd_fg_ colour6_ alpha osd_bg_ colour6_ transp osd_fg_ colour5_ transp osd_fg_ colour5_ alpha osd_bg_ colour5_ transp osd_fg_ colour4_ transp osd_fg_ colour4_ alpha osd_bg_ colour4_ transp osd_fg_ colour3_ transp osd_fg_ colour3_ alpha osd_bg_ colour3_ transp osd_fg_ colour2_ transp osd_fg_ colour2_ alpha osd_bg_ colour2_ transp osd_fg_ colour1_ transp osd_fg_ colour1_ alpha osd_bg_ colour1_ transp osd_fg_ colour0_ transp osd_fg_ colour0_ alpha osd_bg_ colour0_ transp
193
W
194
W
1999 Aug 25
24
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
ADDRESS R/W 195 W
D7 osd_bg_ colour7_ alpha
D6 osd_bg_ colour6_ alpha
D5 osd_bg_ colour5_ alpha
D4 osd_bg_ colour4_ alpha
D3 osd_bg_ colour3_ alpha
D2 osd_bg_ colour2_ alpha
D1 osd_bg_ colour1_ alpha
D0 osd_bg_ colour0_ alpha
On screen display window 196 197 198 199 W W W W(1) char_appearance [1 and 0] cursor_row[5 to 0] cursor_column[5 to 0] char_bg_colour[2 to 0] char_fg_colour[2 to 0]
char_code[6 to 0]
On screen display character matrix 200 201 W W(1) char_code[6 to 0] char_def[7 to 0]
TFT display interface 202 W vsync_pol hsync_pol de_pol clk_pol single_ pixel_ output active_ctrl
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
W W W W W W W W W W W W W W W W W W W W W W W W
line_sync
sync_de_ act
out_if_ enable
blank_tft
sync_ mode
blank_ctrl
border_ ctrl
h_len_blank[7 to 0] h_len_blank[10 to 8] h_len_border[7 to 0] h_len_border[10 to 8] h_len_active[7 to 0] h_len_active[10 to 8] v_end[7 to 0] v_end[10 to 8] v_start[7 to 0] v_start[10 to 8] v_active[7 to 0] v_active[10 to 8] h_vs_start[7 to 0] h_vs_start[10 to 8] h_vs_end[7 to 0] h_vs_end[10 to 8] h_hs_start[7 to 0] h_hs_start[10 to 8] h_hs_end[7 to 0] h_hs_end[10 to 8] h_de_start[7 to 0] h_de_start[10 to 8] h_de_end[7 to 0]
1999 Aug 25
25
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
ADDRESS R/W 227 228 229 230 231 232 233 Note W W W W W W W
D7
D6
D5
D4
D3
D2
D1
D0
h_de_end[10 to 8] h_active_start[7 to 0] h_active_start[10 to 8] v_vs_end[7 to 0] v_vs_end[10 to 8] h_max_len[7 to 0] h_max_len[10 to 8]
1. Register does not work with register address auto-increment, but with incrementing the address on which the operation is performed. Table 6 Detailed description of programming registers NAME State IIC TEST REGISTER IIC test register STATE REGISTER Interrupt state Interrupt active Interrupt not active RGB mode detection SYNC DETECT REGISTER Hsync presence Hsync present Hsync not present Vsync presence Vsync present Vsync not present Hsync polarity Negative Hsync Positive Hsync Vsync polarity Negative Vsync Positive Vsync VERTICAL FRAME RESOLUTION Number of lines between two Vsyncs HORIZONTAL FRAME RESOLUTION Number of clocks between two Hsyncs 7 and 8 R D11 to D0 5 and 6 R D10 to D0 4 R D0 logic 0 logic 1 D1 logic 0 logic 1 D2 logic 0 logic 1 D3 logic 0 logic 1 3 R D0 logic 0 logic 1 2 R/W D7 to D0 SUBADDRESS R/W DATA
1999 Aug 25
26
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
NAME RGB auto adjustment REFERENCE LINE POSITION Reference line for auto adjustment measurements REFERENCE PIXEL POSITION Reference pixel for auto adjustment measurements REFERENCE COLOUR Colour for selecting black or non-black pixels REFERENCE PIXEL COLOUR RED COMPONENT Red colour component of reference pixel REFERENCE PIXEL COLOUR GREEN COMPONENT Green colour component of reference pixel REFERENCE PIXEL COLOUR BLUE COMPONENT Blue colour component of reference pixel BLACK LINES COUNTER Number of black lines after Vsync BLACK PIXELS COUNTER Number of black pixels after Hsync NON-BLACK LINES COUNTER Number of non-black lines after Vsync NON-BLACK PIXELS COUNTER Number of non-black pixels after Hsync
SUBADDRESS
R/W
DATA
9 and 10
W
D10 to D0
11 and 12
W
D11 to D0
13
W
D7 to D0
14
R
D7 to D0
15
R
D7 to D0
16
R
D7 to D0
17
R
D7 to D0
18 and 19
R
D8 to D0
20 and 21
R
D10 to D0
22 and 23
R
D11 to D0
1999 Aug 25
27
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
NAME General configuration CONFIGURATION REGISTER 1 Processing reset state Processing path not in reset state Processing path in reset state Memory reset state Memory path not in reset state Memory path in reset state Input reset state Input path not in reset state Input path in reset state External memory initialization No external memory initialization Start external memory initialization External memory configuration External memory present No external memory present External ADC configuration 2 ADCs connected 1 ADC connected Interrupt acknowledge No acknowledge Reset interrupt output to logic 1 CONFIGURATION REGISTER 2 Output interface Power-down mode Normal processing All outputs of output interface at LOW level Blank screen Normal data processing Blank screen generation after memory interface Output temporal dithering No temporal dithering of output data stream Temporal dithering of output data
SUBADDRESS
R/W
DATA
24
W
D0 logic 0 logic 1 D1 logic 0 logic 1 D2 logic 0 logic 1 D3 logic 0 logic 1 D4 logic 0 logic 1 D5 logic 0 logic 1 D6 logic 0 logic 1
25
W
D0 logic 0 logic 1 D1 logic 0 logic 1 D2 logic 0 logic 1
1999 Aug 25
28
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
NAME Clock distribution CLOCK MULTIPLEXING Memory clock generation Memory clock is taken from pin MCLKI Memory clock is 12 PLL clock Panel clock generation Panel clock is equal system clock Panel clock is generated by PLL clock and post-divider PLL activation PLL disabled PLL enabled PLL post-divider precision
1 1 1 1 2 2
SUBADDRESS
R/W
DATA
26
W
D0 logic 0 logic 1 D1 logic 0 logic 1 D2 logic 0 logic 1 D3 logic 0 logic 1 D4 logic 0 logic 1 D5 logic 0 logic 1 D6 logic 0 logic 1 D7 logic 0 logic 1
clock precision disabled clock precision enabled clock precision disabled clock precision enabled
PLL pre-divider precision
2 2
PLL post-divider activation PLL post-divider disabled PLL post-divider enabled PLL pre-divider activation PLL pre-divider disabled PLL pre-divider enabled External memory clock multiplexer Enable memory clock Use system clock as external memory clock PRE-DIVIDER P-COUNTER Pre-divider p-counter programming PRE-DIVIDER N-COUNTER Pre-divider n-counter programming PRE-DIVIDER N-OFFSET Pre-divider n-counter offset programming POST-DIVIDER P-COUNTER Post-divider p-counter programming POST-DIVIDER N-COUNTER Post-divider n-counter programming POST-DIVIDER N-OFFSET Post-divider n-counter offset programming 32 W 31 W 30 W 29 W 28 W 27 W
D7 to D0
D7 to D0
D3 to D0
D7 to D0
D7 to D0
D3 to D0
1999 Aug 25
29
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
NAME Input interface GENERAL PROGRAMMING Hsync polarity Hsync is active LOW, line starts at rising edge of pin VHS Hsync is active HIGH, line starts at falling edge of pin VHS Vsync polarity Vsync is active LOW, line starts at rising edge of pin VVS Vsync is active HIGH, line starts at falling edge of pin VVS Clamp pulse polarity Pulse is active LOW Pulse is active HIGH Gain correction pulse polarity Pulse is active LOW Pulse is active HIGH ADC sample sequence ADC 0 is sampled first after Hsync (video input port A, B, C) ADC 1 is sampled first after Hsync (video input port D, E, F) Input interface activation No data sampling Data sampling enabled VERTICAL SAMPLE OFFSET Vertical sample offset from Vsync HORIZONTAL SAMPLE OFFSET Horizontal sample offset from Hsync VERTICAL SAMPLE LENGTH Vertical sample window length HORIZONTAL SAMPLE LENGTH Horizontal sample window length CLAMP PULSE START Start of clamp pulse after active edge of Hsync CLAMP PULSE END End of clamp pulse after active edge of Hsync GAIN CORRECTION PULSE START DELAY Delay of start of GAINC pulse from first edge of Hsync GAIN CORRECTION PULSE END DELAY Delay of end of pulse GAINC from second edge of Hsync
SUBADDRESS
R/W
DATA
33
W
D0 logic 0 logic 1 D1 logic 0 logic 1 D2 logic 0 logic 1 D3 logic 0 logic 1 D4 logic 0 logic 1 D6 logic 0 logic 1
35 and 36
W
D10 to D0
37 and 38
W
D11 to D0
39 and 40
W
D10 to D0
41 and 42
W
D11 to D0
43
W
D7 to D0
44
W
D7 to D0
45
W
D7 to D0
46
W
D7 to D0
1999 Aug 25
30
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
NAME Colour correction PROGRAMMING SELECTOR, ACTIVATION Colour correction activation Straight colour processing Colour substitution enabled Blue component programming Red component correction colour writing disabled Red component correction colour writing enabled Green component programming Red component correction colour writing disabled Red component correction colour writing enabled Red component programming Red component correction colour writing disabled Red component correction colour writing enabled COLOUR INDEX FOR LOOK-UP TABLE WRITING Colour component look-up table index COLOUR VALUE FOR LOOK-UP TABLE WRITING Colour component substitution value Memory controller unit GENERAL CONFIGURATION External memory data bus width 32 bits (two 16-bit channels) 48 bits (three 16-bit channels) 64 bits (four 16-bit channels) do not use ACCESS BURST LENGTH Number of bursts per read/write access to SDRAM SDRAM BURST LENGTH SDRAM burst length SDRAM initialization code for burst length SDRAM TIMING PARAMETER 1; SEE TABLE 10 Active to read or write delay (tRCD) in clocks CAS latency (CL) in clocks SDRAM TIMING PARAMETER 2; SEE TABLE 10 Precharge command period (tRP) in clocks Active bank A to active band B command (tRRD) in clocks
SUBADDRESS
R/W
DATA
47
W
D0 logic 0 logic 1 D1 logic 0 logic 1 D2 logic 0 logic 1 D3 logic 0 logic 1
48
W
D7 to D0
49
W
D7 to D0
50
W
D3 and D2 D3 = 0 and D2 = 0 D3 = 0 and D2 = 1 D3 = 1 and D2 = 0 D3 = 1 and D2 = 1
51
W
D3 to D0
52
W
D3 to D0 D6 to D4
53
W
D3 to D0 D6 to D4
54
W
D3 to D0 D7 to D4
1999 Aug 25
31
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
NAME SDRAM TIMING PARAMETER 3; SEE TABLE 10 Auto refresh, active command period (tRC) in clocks Write recovery time (tWR) in clocks FIELD START ADDRESS (ROW) Start address of field in external SDRAM memory (row) FIELD START ADDRESS (COLUMN) Start address of field in external SDRAM memory (column) OUTPUT FRAME LENGTH Vertical length of output frame after de-interlacing unit OUTPUT LINE LENGTH Horizontal length of output frame after de-interlacing unit BLANK COLOUR RED COMPONENT DEFINITION Red colour component for blank screen generation BLANK COLOUR GREEN COMPONENT DEFINITION Green colour component for blank screen generation BLANK COLOUR BLUE COMPONENT DEFINITION Blue colour component for blank screen generation
SUBADDRESS
R/W
DATA
55
W
D3 to D0 D7 to D4
56 and 57
W
D10 to D0
58
W
D7 to D0
68 and 69
W
D10 to D0
70 and 71
W
D11 to D0
72
W
D7 to D0
73
W
D7 to D0
74
W
D7 to D0
1999 Aug 25
32
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
NAME Scaler SCALER CONFIGURATION Horizontal downscaler activation Horizontal downscaler disabled Horizontal downscaler enabled Vertical downscaler activation Vertical downscaler disabled Vertical downscaler enabled Horizontal upscaler activation Horizontal upscaler disabled Horizontal upscaler enabled Vertical upscaler activation Vertical upscaler disabled Vertical upscaler enabled Horizontal upscaling transition function programming Horizontal upscaling transition function writing disabled Horizontal upscaling transition function writing enabled Vertical upscaling transition function programming Vertical upscaling transition function writing disabled Vertical upscaling transition function writing enabled Line memory usage Line memory used by upscaling unit Line memory used by downscaling unit VERTICAL UPSCALE INCREMENT Increment for vertical upscaling VERTICAL UPSCALE CORRECTION Fraction of vertical upscaling increment (1100) HORIZONTAL UPSCALE INCREMENT Increment for horizontal upscaling HORIZONTAL UPSCALE CORRECTION Fraction of horizontal upscaling increment (1100) VERTICAL DOWNSCALE INCREMENT Increment for vertical downscaling VERTICAL DOWNSCALE CORRECTION Fraction of vertical downscaling increment (1100) HORIZONTAL DOWNSCALE INCREMENT Increment for horizontal downscaling
SUBADDRESS
R/W
DATA
75
W
D0 logic 0 logic 1 D1 logic 0 logic 1 D2 logic 0 logic 1 D3 logic 0 logic 1 D4 logic 0 logic 1 D5 logic 0 logic 1 D6 logic 0 logic 1
76 and 77
W
D11 to D0
78
W
D6 to D0
79 and 80
W
D11 to D0
81
W
D6 to D0
82
W
D5 to D0
83
W
D6 to D0
84
W
D5 to D0
1999 Aug 25
33
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
NAME HORIZONTAL DOWNSCALE CORRECTION Fraction of horizontal downscaling increment (1100) INDEX FOR COEFFICIENT TABLE WRITING Transition function look-up table index COEFFICIENT VALUE FOR LOOK-UP TABLE WRITING Values of transition function Panning unit VERTICAL PICTURE OFFSET Vertical input picture offset inside the output frame HORIZONTAL PICTURE OFFSET Horizontal input picture offset inside the output frame VERTICAL OUTPUT FRAME LENGTH Vertical output frame length HORIZONTAL OUTPUT FRAME LENGTH Horizontal output frame length BORDER COLOUR RED COMPONENT DEFINITION Red colour component for border generation BORDER COLOUR GREEN COMPONENT DEFINITION Green colour component for border generation BORDER COLOUR BLUE COMPONENT DEFINITION Blue colour component for border generation
SUBADDRESS
R/W
DATA
85
W
D6 to D0
86
W
D5 to D0
87
W
D6 to D0
88 and 89
W
D10 to D0
90 and 91
W
D11 to D0
92 and 93
W
D10 to D0
94 and 95
W
D11 to D0
96
W
D7 to D0
97
W
D7 to D0
98
W
D7 to D0
1999 Aug 25
34
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
NAME OSD overlay port GENERAL CONFIGURATION OSD overlay port activation Overlay information will not be inserted into data stream Overlay information will be inserted into data stream Sync pulse generation No sync pulses will be generated Sync pulses will be generated Clock edge for sampling Data sampling at falling edge of clock at pin OVCLK Data sampling at rising edge of clock at pin OVCLK Clock gating OVCLK always enabled OVCLK enabled only during internal active video processing Horizontal sync polarity Active LOW horizontal sync pulse at pin OVHS Active HIGH horizontal sync pulse at pin OVHS Vertical sync polarity Active LOW vertical sync pulse at pin OVVS Active HIGH vertical sync pulse at pin OVVS Overlay port active pixel qualifier polarity Active LOW qualifier signal at pin OVACT Active HIGH qualifier signal at pin OVACT Overlay port clock polarity Sync pulse change with respect to falling edge at pin OVCLK Sync pulse change with respect to rising edge at pin OVCLK OVERLAY HORIZONTAL SYNC START Start of horizontal sync pulse with respect to left frame border OVERLAY HORIZONTAL SYNC LENGTH Length of horizontal sync pulse OVERLAY HORIZONTAL SYNC LATENCY Delay between start of horizontal sync and valid overlay data OVERLAY WINDOW HORIZONTAL LENGTH Horizontal length of overlay region OVERLAY WINDOW VERTICAL OFFSET Vertical offset of overlay region OVERLAY WINDOW VERTICAL LENGTH Vertical length of overlay region
SUBADDRESS
R/W
DATA
99
W
D0 logic 0 logic 1 D1 logic 0 logic 1 D2 logic 0 logic 1 D3 logic 0 logic 1 D4 logic 0 logic 1 D5 logic 0 logic 1 D6 logic 0 logic 1 D7 logic 0 logic 1
100 and 101
W
D10 to D0
102 and 103
W
D10 to D0
104
W
D7 to D0
105 and 106
W
D10 to D0
107 and 108
W
D10 to D0
109 and 110
W
D10 to D0
1999 Aug 25
35
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
NAME OVERLAY VERTICAL SYNC START Start of vertical sync pulse with respect to top frame border COLOUR 0 TO 7 RED COMPONENT DEFINITION Red colour component for overlay colour 0 to 7
SUBADDRESS
R/W
DATA
111 and 112
W
D10 to D0
113, 116, 119, 122, 125, 128, 131 and 134
W
D7 to D0
COLOUR 0 TO 7 GREEN COMPONENT DEFINITION Green colour component for overlay colour 0 to 7 114, 117, 120, 123, 126, 129, 132 and 135 W D7 to D0
COLOUR 0 TO 7 BLUE COMPONENT DEFINITION Blue colour component for overlay colour 0 to 7 115, 118, 121, 124, 127, 130, 133 and 136 W D7 to D0
On screen display GENERAL CONFIGURATION OSD activation OSD is not visible OSD is visible OSD character size 12 x 16 character matrix 24 x 24 character matrix OSD zoom No zooming of OSD window Zoom by 2 of OSD window OSD WINDOW VERTICAL OFFSET Vertical offset of OSD window from left frame border in pixel OSD WINDOW HORIZONTAL OFFSET Horizontal offset of OSD window from top frame border in pixel OSD WINDOW VERTICAL SIZE Vertical size of OSD window in characters OSD WINDOW HORIZONTAL SIZE Horizontal size of OSD window in characters FOREGROUND COLOUR 0 TO 7 RED COMPONENT DEFINITION Red colour component for foreground colour 0 to 7 144, 147, 150, 153, 156, 159, 162 and 165 W D7 to D0 143 W D5 to D0 142 W D5 to D0 140 and 141 W D11 to D0 138 and 139 W D10 to D0 137 W D0 logic 0 logic 1 D1 logic 0 logic 1 D2 logic 0 logic 1
1999 Aug 25
36
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
NAME FOREGROUND COLOUR 0 TO 7 GREEN COMPONENT DEFINITION Green colour component for foreground colour 0 to 7
SUBADDRESS
R/W
DATA
145, 148, 151, 154, 157, 160, 163 and 166
W
D7 to D0
FOREGROUND COLOUR 0 TO 7 BLUE COMPONENT DEFINITION Blue colour component for foreground colour 0 to 7 146, 149, 152, 155, 158, 161, 164 and 167 W D7 to D0
BACKGROUND COLOUR 0 TO 7 RED COMPONENT DEFINITION Red colour component for background colour 0 to 7 168, 171, 174, 177, 180, 183, 186 and 189 W D7 to D0
BACKGROUND COLOUR 0 TO 7 GREEN COMPONENT DEFINITION Green colour component for background colour 0 to 7 169, 172, 175, 178, 181, 184, 187 and 190 W D7 to D0
BACKGROUND COLOUR 0 TO 7 BLUE COMPONENT DEFINITION Blue colour component for background colour 0 to 7 170, 173, 176, 179, 182, 185, 188 and 191 W D7 to D0
FOREGROUND TRANSPARENT COLOUR DEFINITION Foreground colour transparency Foreground colour is not transparent Foreground colour is transparent FOREGROUND ALPHA BLENDING COLOUR DEFINITION Foreground colour alpha blending Foreground colour is not alpha blendable Foreground colour is alpha blendable BACKGROUND TRANSPARENT COLOUR DEFINITION Background colour transparency Background colour is not transparent Background colour is transparent BACKGROUND ALPHA BLENDING COLOUR DEFINITION Background colour alpha blending Background colour is not alpha blendable Background colour is alpha blendable 195 W D7 to D0 logic 0 logic 1 194 W D7 to D0 logic 0 logic 1 193 W D7 to D0 logic 0 logic 1 192 W D7 to D0 logic 0 logic 1
1999 Aug 25
37
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
NAME On screen display window CURSOR POSITION 1 Cursor row CURSOR POSITION 2 Cursor column CHARACTER APPEARANCE Foreground colour code Background colour code Character appearance Picture information will be overwritten by OSD data Transparency of OSD transparent colours 1 : 1 alpha blending of OSD alpha colours 1 : 2 alpha blending of OSD alpha colours CHARACTER CODE Code of character to be placed at cursor position On screen display character matrix CHARACTER CODE Code of character to be defined CHARACTER PATTERN Character definition pattern TFT display interface GENERAL CONFIGURATION 1 Output width Double pixel output (48 bits) Single pixel output (24 bits) Output clock polarity Data output with respect to falling edge of pin PCLK Data output with respect to rising edge of pin PCLK Data qualifier polarity Active LOW pin PDE Active HIGH pin PDE Horizontal sync polarity Active LOW horizontal sync at pin PHS Active HIGH horizontal sync at pin PHS Vertical sync polarity Active LOW vertical sync at pin PVS Active HIGH vertical sync at pin PVS
SUBADDRESS
R/W
DATA
196
W
D5 to D0
197
W
D5 to D0
198
W
D2 to D0 D5 to D3 D7 and D6 D7 = 0 and D6 = 0 D7 = 0 and D6 = 1 D7 = 1 and D6 = 0 D7 = 1 and D6 = 1
199
W
D6 to D0
200
W
D6 to D0
201
W
D7 to D0
202
W
D0 logic 0 logic 1 D1 logic 0 logic 1 D2 logic 0 logic 1 D3 logic 0 logic 1 D4 logic 0 logic 1
1999 Aug 25
38
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
NAME GENERAL CONFIGURATION 2 Line length controlling in active video region Line length controlling disabled Line length controlling enabled Line length controlling in border region Line length controlling disabled Line length controlling enabled Line length controlling in top blanking region Line length controlling disabled Line length controlling enabled Output interface mode Free running output interface timing (external SDRAM required) Synchronous output interface timing (without external SDRAM) Blanking mode Normal operating mode All data outputs are at LOW level (black colour) Output interface enabling Output interface disabled, no data processing Output interface enabled, normal data processing Data qualifier generation mode Disable pulse generation at pin PDE during vertical syncs Enable pulse generation at pin PDE during vertical syncs Line synchronization Normal mode Do not use HORIZONTAL LINE LENGTH IN BLANKING REGION Horizontal line length in blanking region HORIZONTAL LINE LENGTH IN BORDER REGION Horizontal line length in border region HORIZONTAL LINE LENGTH IN ACTIVE VIDEO REGION Horizontal line length in active video region VERTICAL FRAME END Vertical frame length VERTICAL BORDER REGION START Vertical start of border region VERTICAL ACTIVE VIDEO REGION START Vertical start of active video region HORIZONTAL DELAY OF START OF VERTICAL SYNC Horizontal start delay of vertical sync pulse at pin PVS 1999 Aug 25 39
SUBADDRESS
R/W
DATA
203
W
D0 logic 0 logic 1 D1 logic 0 logic 1 D2 logic 0 logic 1 D3 logic 0 logic 1 D4 logic 0 logic 1 D5 logic 0 logic 1 D6 logic 0 logic 1 D7 logic 0 logic 1
204 and 205
W
D10 to D0
206 and 207
W
D10 to D0
208 and 209
W
D10 to D0
210 and 211
W
D10 to D0
212 and 213
W
D10 to D0
214 and 215
W
D10 to D0
216 and 217
W
D10 to D0
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
NAME HORIZONTAL DELAY OF END OF VERTICAL SYNC Horizontal end delay of vertical sync pulse at pin PVS HORIZONTAL SYNC PULSE START Start of horizontal sync pulse at pin PHS HORIZONTAL SYNC PULSE END End of horizontal sync pulse at pin PHS DATA QUALIFIER START Start of border region and horizontal data qualifier at pin PDE DATA QUALIFIER END End of border region and horizontal data qualifier at pin PDE HORIZONTAL ACTIVE REGION START Start of horizontal active video region VERTICAL SYNC PULSE END Vertical sync pulse end at pin PVS MAXIMUM HORIZONTAL LINE LENGTH Maximum reachable line length for length controlling 8.2 8.2.1 Clock management CLOCK GENERATION AND MULTIPLEXING
SUBADDRESS
R/W
DATA
218 and 219
W
D10 to D0
220 and 221
W
D10 to D0
222 and 223
W
D10 to D0
224 and 225
W
D10 to D0
226 and 227
W
D10 to D0
228 and 229
W
D10 to D0
230 and 231
W
D10 to D0
232 and 233
W
D10 to D0
For normal operation the SAA6712E uses two clock inputs; pin VCLK and pin CLK. VCLK is used as the sample clock provided by the external ADCs or decoder. The frequency and the sample edges of this clock depend on the number of ADCs connected, or on the video dot clock: * 1 ADC mode: maximum VCLK frequency is 150 MHz * 2 ADC mode: maximum VCLK frequency is 75 MHz. The clock from pin CLK is used as an internal reference, and it is the source clock for the internal PLL. The memory clock MCLKO and panel clock PCLK are derived from the PLL (see Fig.8): CLK MCLKO = ---------- x 16 N CLK 32 PCLK = ---------- x ----N M Where N = pre-divider ratio, M = post-divider ratio and CLK 5 MHz ---------- 8 MHz N
It is possible to drive the memory clock output directly without the internal PLL via pin MCLKI. To achieve this the programming flag pll_mclk must be set to logic 0. The same is possible for the panel output clock. Therefore the system clock CLK is used directly. The system clock is controlled by pll_pclk which must be set to logic 0.
1999 Aug 25
40
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
handbook, full pagewidth
MCLKI MCLKO CLK PRE-DIVIDER PLL x 32 POST-DIVIDER PCLK
/2
MHB251
Fig.8 Clock generator.
8.2.2
CLOCK DIVIDER
The pre- and post-dividers are implemented in such a way, that they support dividing ratios of 0.5 steps in an interval from 1.5 to 10.5. All further dividing ratios are in steps of 1.0; see Fig.9 and Table 7. Programming of the clock dividers must be done using the registers 26 to 32. It is necessary that the clock dividers must be disabled before programming and be enabled afterwards. This can be done with pre_div_enable and post_div_enable.
handbook, full CLK pagewidth
CLK/4
CLK/4.5
CLK/5
CLK/5.5
MHB252
Fig.9 Clock waveforms.
Table 7
Clock divider programming RATIO 1.5 2.0 2.5 3.0 3.5 P-COUNTER (HEX) 10 00 30 10 41 N-COUNTER (HEX) 10 00 30 10 41 41 N-OFFSET COUNTER (HEX) 1 0 2 0 3 HALF CLK 1 0 1 1 1
1999 Aug 25
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
RATIO 4.0 4.5 5.0 5.5 6.0 6.5 7.0 7.5 8.0 8.5 9.0 9.5 10.0 10.5 11.0 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0 20.0 21.0 22.0 23.0 24.0 25.0 26.0 27.0 28.0 29.0 30.0 31.0 32.0
P-COUNTER (HEX) 11 61 21 72 22 92 32 A3 33 C3 43 D4 44 F4 54 55 65 66 76 77 87 88 98 99 A9 AA BA BB CB CC DC DD ED EE FE FF
N-COUNTER (HEX) 00 61 21 72 00 92 32 A3 00 C3 43 D4 00 F4 54 00 65 00 76 00 87 00 98 00 A9 00 BA 00 CB 00 DC 00 ED 00 FE 00
N-OFFSET COUNTER (HEX) 0 4 0 5 0 6 0 7 0 8 0 9 0 A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
HALF CLK 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
1999 Aug 25
42
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
8.3 8.3.1 RGB input interface RGB DATA SAMPLING Table 8 Clock relationships VCLK dot clock
1 2
SAA6712E
Sampling is done on the rising edge or on both edges of VCLK depending on the number of ADCs. The sample window is defined by v_offset, h_offset, v_length, and h_length. The offset counters start counting from the second edge of their reference signals, i.e. VVS for vertical offset and VHS for horizontal offset. Figure 10 shows the horizontal offset. The polarities of the sync signals are given with vs_pol and hs_pol. The vertical sample offset is given in lines and the horizontal offset is measured in pixels. The width of the sample window is defined by the length counters. The vertical width is measured in lines and the horizontal width in pixels, but only even pixel numbers are allowed. The sample clock for the ADCs is always VCLK, but in dual ADC mode this clock is half the pixel clock. Because of that, in dual ADC mode, both clock edges are used to sample data by the ADCs.
NUMBER OF ADCs 1 2
VCLK SAMPLE EDGE positive both
dot clock
In single ADC mode, with each VCLK clock, a pixel must be sampled from port A. In dual ADC mode, at each VCLK clock edge, a pixel must be sampled alternating from port A or B. The flag adc_sample_seq selects from which port data sampling starts after the active edge of the horizontal synchronization pulse. 8.3.2 CLAMP PULSE GENERATION
The clamp pulse is generated with respect to half the dot clock. The counters values responsible for switching the clamp pulse on or off are clamp_on and clamp_off. Both start counting from the second edge of VHS. The polarity of CLAMP is given with clamp_pol.
handbook, full pagewidth
VHS
h_offset n 0 1 23 4 5
h_length
RGB data
MHB253
Fig.10 RGB data sampling.
1999 Aug 25
43
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
8.3.3 GAIN CORRECTION PULSE GENERATION
SAA6712E
The GAINC signal is the delayed horizontal sync pulse (VHS). It is delayed with respect to half the dot clock. The first edge of VHS is delayed by gainc_on_delay and the second edge by gainc_off_delay (see Fig.11). The polarity is programmed by gainc_pol.
handbook, full pagewidth
VHS
clamp_off clamp_on RGB data
GAINC
gainc_on_delay gainc_off_delay CLAMP
MHB254
Fig.11 Gain adjustment and clamp pulse generation.
8.4
Video mode and synchronization signal detection
The reset can be cleared by writing a logic 1 to intr_clear at address 24. For adjusting the RGB input interface to a new graphics mode, the registers of the section RGB auto adjustment are to be used. With this auto adjustment support it is possible to measure the number of blanking pixels and lines between the end of the synchronization pulses and the active video. The horizontal and vertical back porch blanking can be read out at black_pixels and black_lines. The number of active pixels or lines will be reported from non_black_pixels and non_black_lines. The first value should be used for tuning the sample clocks PLL so that this value corresponds to the number of pixels to be sampled horizontally in this specific graphics mode. To distinguish between blanking and active video ref_colour is used. If the sample values of all three colour components are below this value the pixel is treated as a blanking pixel, otherwise it is treated as active video. Additionally a reference pixel can be defined with ref_line and ref_pixel. The R, G, and B components of this pixel are sampled and available at ref_pixel_red, ref_pixel_green, and ref_pixel_blue. They can be used for fine tuning the external PLL in frequency and phase and for colour gain adjustment.
The SAA6712E can be used to build up auto-scan systems using an external microcontroller. Therefore information about the input resolution and timing are provided (see Tables 5 and 6). The flags pos_vsync and pos_hsync show the polarity of the synchronization signals at VVS and VHS. If they are set to logic 1 they are active HIGH, and their active edge is the falling edge. If these flags are set to logic 0, they are active LOW. For detecting Video Electronic Standard Association (VESA) Power-down modes or a not connected input, the presence of the synchronization signals will be detected: it can be read via no_vsync, and no_hsync. These flags are active HIGH. The timing of the applied RGB video input can be taken from v_lines reporting the number of lines of a full frame. The horizontal timing can be calculated from h_clocks. This register shows the length of a line in numbers of reference clock periods. The reference clock is equal to the panel clock PCLK in double pixel output mode (48 bits in parallel), or it is half the panel clock PCLK in single pixel output mode (24 bits in parallel). If one of the above mentioned flags or counters changes its value, it can be assumed that a new graphics mode has been applied. In this case an interrupt at pin INT will be generated. This port is active LOW. 1999 Aug 25 44
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
8.5 Memory interface
SAA6712E
To reach a high effective bandwidth all access to the external memory is organized in bursts. The larger the number of subsequent read or write accesses the higher the effective bandwidth. An effective bandwidth of 91% can be reached by doing 64 words burst accesses. The RAM devices support a maximum internal burst length of 8 words only, so 8 of these bursts must be run subsequently. This can be programmed by setting up the RAM with SDRAM_burst_length_code taken from the specification data of the SDRAM or SGRAM. The memory interface must be programmed to 64 words bursts by programming the RAM burst length SDRAM_burst_length to 8, and the number of these bursts in burst_seq_length to 8. The internal structure of the SAA6712E is optimized for 64 words bursts. 8.5.1 MEMORY INTERFACE LIMITATIONS
The SAA6712E features a 64 bits wide synchronous DRAM interface. Both SDRAM and SGRAM devices can be used. There is no difference in programming when using SDRAM or SGRAM devices. The only thing that must be considered is the amount of frame buffer memory, which must be enough for the specific application. If not the whole bandwidth of the 64 bits wide data bus is needed, the data bus can be downsized to 48 or 32 bits. This is done with the parameter data_width, see Table 9. Table 9 Data bus width PROGRAMMED BUS WIDTH (BITS) 32 48 64
data_width[1 and 0] 0 1 2
Since the different timing parameters of various RAM device types are different, all important timing values are programmable and must be set-up according to the used RAM types. Table 10 Memory interface limitations TIMING SYMBOL CAS latency tRCD tRRD tRP tWR tRC SDRAM_burst_length burst_seq_length tRSC PARAMETER Column Address Strobe (CAS) latency activate to command delay; Row Address Strobe (RAS) to CAS delay RAS to RAS bank activity delay RAS precharge time write recovery time RAS cycle time
The timing parameters of the memory access can be programmed to fulfil the timing restrictions of several SDRAM or SGRAM devices. But there are some limitations, as shown in Table 10.
CONDITIONS
MINIMUM VALUE (CLOCK PERIODS) 2 2
tRRD tRCD; proposal is tRRD = tRCD + 1
3 3 1 3
must be supported by SDRAM must be an even number Register Set Cycle (RSC) mode time internally defined; cannot be changed
2 2 =8
8.5.2
INITIALIZATION OF EXTERNAL MEMORY
All SGRAM and SDRAM devices must be powered-up and initialized correctly. The SAA6712E memory interface is implemented to fulfil the INTEL PC100 SDRAM specification. Table 11 shows the required programming steps to initialize the memory correctly. 1999 Aug 25 45
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
Table 11 Memory initialization programming STEP 1 2 3 4 5 8.5.3 SAA6712E Power-on reset set-up timing parameters start memory initialization with setting memory_init set-up all other parameters release internal memory reset together with other internal resets ACTION
SAA6712E
REGISTERS - 51 to 55 24 50 to 74 24
FRAME RECOVERY
Output frames with the right vertical and horizontal dimensions must be generated. Since size information is not stored in the external memory, the output frame resolution must be programmed into the registers frame_length and line_length. The first value gives the vertical resolution, and the second the horizontal resolution in pixels. If no downscaler is used, these values can be taken directly from the input interface. If downscaling is activated, the size of the de-interlacer output frame must be calculated from the RGB input frame size divided by the downscaling factors. If no valid data stream is applied at the RGB input interface, the de-interlacer is able to generate a picture by itself. This will be enabled with blank_screen at address 25. The colour of this frame is defined by blank_colour_red, blank_colour_green, and blank_colour_blue. 8.6 Scaling
number_of_output_pixels incr = ------------------------------------------------------------------ x 64 = xx.yy number_of_input_pixels Where xx is equivalent to down_v_incr or down_h_incr and yy is the fraction of the result in 1100. This is the value for programming the increment correction values down_v_corr and down_h_corr. Example: SXGA XGA 1024 Horizontal: ------------ x 64 = 51.20 1280 This means down_h_incr = 51 and down_h_corr = 20. 768 Vertical: ------------ x 64 = 48.00 1024 This means down_v_incr = 48 and down_v_corr = 0. 8.6.2 UPSCALING
Two different scaling units are implemented to perform both up and downscaling. The downscaling engine, which is located before the memory interface, and the upscaling engine after the memory interface. 8.6.1 DOWNSCALING
The upscaler must be activated by up_v_scaler_on and up_h_scaler_on. To use the line memory for upscaling, down_v_scaler_mem must be set to logic 0. To set-up the zoom factor, the scaling increments up_v_incr, up_v_corr, up_h_incr, and up_h_corr must be programmed. number_of_output_pixels incr = ------------------------------------------------------------------ x 64 = xx.yy number_of_input_pixels Where xx is equivalent to up_v_incr or up_h_incr and yy is the fraction of the result in 1100. This is the value for programming the increment correction values up_v_corr and up_h_corr. Example: XGA SXGA 1280 Horizontal: ------------ x 64 = 80.00 1024 This means up_h_incr = 80 and up_h_corr = 0. 1024 Vertical: ------------ x 64 = 85.33 768 This means up_v_incr = 85 and up_v_corr = 33.
If the downscaler is to be used, it must be enabled by setting flags down_v_scaler_on and down_h_scaler_on. For vertical scaling a line memory buffer is needed. This memory must be switched to downscaling mode by setting down_v_scaler_mem to logic 1 because only one is available. Setting up the desired downscaling ratios is achieved by programming the scaling increments down_v_incr, down_v_corr, and down_h_incr, down_h_corr. This must be done for both vertical and horizontal scaling.
1999 Aug 25
46
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
8.6.3 UPSCALER TRANSITION FUNCTION 8.7 Panning unit
SAA6712E
A special feature of the zooming algorithm is a free programmable transition function which allows smoothing or sharpening of the transition between pixels that have been calculated. This function will be stored in a look-up table, containing 64 words of 7 bits; thus a function of 64 points with a resolution from 0 to 64 can be programmed. Programming is performed using the registers coeff_index and coeff_value. The first register defines the point of the function, the second the value. Writing to register coeff_value increments the value of coeff_index automatically, so that the next point of the function is addressed. Additionally no register increment will be performed, so that subsequent I2C-bus write addresses always have the same register coeff_value.
If the scaled or non-scaled input frame does not fit into the needed output frame, whether it is to large or to small, the panning unit enlarges the input frame to the size of the output frame. This is achieved by generating a border region around the input frame, or it cuts the input frame down to the size of the output frame. The position of the top left pixel of the input frame inside the output frame must be defined with pic_v_offset and pic_h_offset. The output frame size must be programmed with out_v_size and out_h_size (see Fig.12). If the input frame is to large only the right and bottom part will be cropped. The colour of the generated border region must be set via border_colour_red, border_colour_green, and border_colour_blue.
handbook, full pagewidth
pic_v_offset pic_h_offset
out_v_size
OUTPUT FRAME INPUT FRAME out_h_size
MHB257
Fig.12 Picture positioning.
1999 Aug 25
47
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
8.8 8.8.1 Overlay port OVERLAY INSERTION
SAA6712E
The incoming data from ports ovl0 and ovl1 is replaced by the defined colour information and treated as a double pixel, which will be inserted into the data stream if OVACT is set. The pixel at port 0 is then the left pixel, and the pixel at port 1 is the right pixel. The sampling of the ports ovl0 and ovl1 is done on the positive edge of OVCLK in the event that sample_edge is asserted, otherwise on the falling edge of OVCLK.
If ovl_syncs_active is HIGH, the vertical and horizontal sync signals for the external OSD controller are generated. The flag ovl_insert_active switches on the insertion of the information at the overlay port provided by an external OSD controller into the data stream at the position defined by ovl_v_offset, ovl_hs_start, and ovl_hs_latency (see Fig.13).
handbook, full pagewidth
ovl_hs_latency ovl_hs_start ovl_v_offset ovl_h_length
ovl_v_length ovl_vs_start
OVERLAY WINDOW
one line Vsync
OUTPUT FRAME
MHB258
Fig.13 Overlay window positioning.
1999 Aug 25
48
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
8.8.2 SYNC GENERATION 8.8.3 DATA SAMPLING
SAA6712E
The start of the horizontal sync pulse is defined in ovl_hs_start and the polarity in ovl_hs_pol. The sync pulse length is defined in ovl_hs_length (see Fig.14). It is possible to generate a Hsync pulse from one clock cycle length up to longer than the horizontal overlay data. The vertical sync pulse starts at ovl_vs_start and is always one output frame line long.
Data sampling from the two ports OVA and OVB starts from the beginning of the horizontal sync pulse, but the number of clocks defined in ovl_hs_latency will decide when reading data from the overlay port will start (see Fig.14). The end of the sync pulse is not important.
handbook, full pagewidth
ovl_hs_start
ovl_hs_length ovl_hs_latency ovl_h_length
OVCLK
OVHS
OVA
O0
O2
O4
O6
O8
OVB
O1
O3
O5
O7
O9
OVACT
MHB259
Fig.14 Hsync generation and data sampling (Hsync latency = 2).
8.8.4
OVCLK GATING
All of the above mentioned functions will only work during internal processing of valid video data, and not during internal blanking regions. This can give problems if the overlay window is displayed at the left border of the picture because the first pixels of a line will be processed due to the internal pipeline structure. To overcome this, the OVCLK can be gated to disable data processing by the external OSD controller during internal blanking. Clock gating is enabled by clk_gating_on. 8.9 Colour correction
Various tables exist for R, G, and B components. Programming of a table must be performed using the programming registers 47 to 49 (see the colour correction section of the programming register Table 5). It must be decided which component table should be written to (red_prog, green_prog, blue_prog). In colour_index the start address or the first incoming colour value for programming must be written. Then subsequent writing to colour_value fill the table. At this address the I2C-bus address auto-increment stops, but the value programmed into colour_index will be incremented. It is possible to write to more than one table by enabling of programming multiple colour components. If the colour correction unit is switched to bypass mode (when colour_correction_on is not asserted), the incoming colours are used for further processing. Writing to the colour correction table is possible during data processing.
The colour correction unit can be used to perform gamma correction, change of brightness, and so on. This can be achieved by means of a look-up table. Each colour component value in an RGB pixel is used as a pointer into this table. The value from the table will replace the incoming colour.
1999 Aug 25
49
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
8.10 8.10.1 On screen display OSD GENERALS
handbook, halfpage
SAA6712E
The implemented OSD is a character based window system. It consists of a character matrix memory where all character definitions are stored, and an OSD window memory defining the OSD window's contents. The OSD window will be inserted into the video data stream if osd_active is set to logic 1. Writing to these memories can be done during data processing. 8.10.2 OSD WINDOW
osd_v_offset osd_h_offset
osd_v_size
OSD OUTPUT FRAME osd_h_size
MHB260
The OSD window contains the character, colour and appearance information to be displayed. Such a definition exists for each character position. A character can use one of 8 different foreground and background colours. Some of these colours can be defined as transparent colours where the original picture information will be displayed instead, as alpha blended colours where a 1 : 1 or 1 : 2 alpha blending will be done between picture and OSD, or as normal colours. Transparency or alpha blending effects will be enabled or disabled for the single characters. The size and outline of the visible OSD window can be programmed as long as the internal memory meets the needs. This memory is able to store information of 1152 characters information. The programming registers osd_v_size and osd_h_size define the OSD window size in characters. The window position inside the output frame must be defined with osd_v_offset and osd_h_offset (see Fig.15).
Fig.15 OSD window positioning.
The OSD can be programmed to use a 24 x 24 character matrix, or a 12 x 16 matrix. The first one should be used for Kanji and the second for standard characters. The selection of the font size is done by char_size. A logic 1 selects 24 x 24 font, and a logic 0 the smaller 12 x 16 font. If the small 12 x 16 font is used, up to 128 different characters can be defined. Alternatively up to 42 characters of the larger 24 x 24 font can be used. Table 12 gives some possible OSD settings.
1999 Aug 25
50
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
Table 12 OSD window size OSD WINDOW RESOLUTION/PIXELS OSD SIZE 32 x 16 40 x 20 48 x 24 24 x 24 768 x 384 960 x 480 1152 x 576 12 x 16 384 x 256 480 x 320 576 x 384 Table 14 Colour effects APPEARANCE VALUE 0 1
SAA6712E
EFFECT OSD character colours are displayed instead of the picture colours OSD character colours defined as transparency colours will be replaced by the picture colours OSD character colours defined as alpha blending colours will be alpha blended 1 : 1 with the picture colours OSD character colours defined as alpha blending colours will be alpha blended 2 : 1 with the picture colours
The whole OSD window can be zoomed in both directions by a factor of two by setting zoom2 to logic 1. This results in pixel doubling horizontally and vertically. Each character can be displayed using 1 of 8 different foreground and background colours. These sixteen colours can be chosen from the full true colour palette with 8 bits per colour component. The definition of these colours is in registers 144 to 191 (see OSD section of the programming register Table 5). The first 8 colour entries are used for foreground colours, and the second half is used for defining the background colours. Registers 192 to 195 (see Table 5) decide the transparency and alpha blending effects. If one of these effects is enabled for a specific character, only the colours defined as transparency or alpha blending colours will be used to generate these effects. Each character information in the OSD window memory consists of 15 bits of information. This is given in Tables 13 and 14. Table 13 Character appearance definition CHARACTER INFORMATION Character code Appearance Background colour Foreground colour NUMBER OF BITS 7 2 3 3
2
3
To access a certain character position its coordinates must be programmed into registers 196 (cursor_row) and 197 (cursor_column), see Table 5. After that, the colours and appearance of the character must be defined in address 198 (see Table 5). This definition is valid for all further writes to register 199 (char_code), see Table 5. After writing to this register the cursor position changes to the next right position. At line end it wraps around to the first left character in the line below. I2C-bus auto-increment is not active at register 199 (see Table 5), so that subsequent I2C-bus byte write accesses will define several characters. 8.10.3 OSD CHARACTER MATRIX
Two different font sizes are supported; 24 x 24 and 12 x 16 pixels. With the internal matrix memory 42 characters (24 x 24 pixels) can be defined, or 128 characters (16 x 12 pixels). The definition of the characters is achieved by writing to registers 200 and 201 (see Table 5). The first register must be written to with the character code of the character to be defined. Then the bytes with the pixel pattern must be written to address 201 (see Table 5). The definition of a character is done with 3 bytes per line at 24 x 24 font (72 bytes per character), and with 3 bytes per 2 lines at 12 x 16 font (24 bytes per character), see Fig.16.
The character code is used to address the defined characters inside the matrix memory. The appearance bits decide about transparency and alpha blending, and background and foreground colour are indices to the colour definition registers.
1999 Aug 25
51
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
The second mode is synchronized to the input data, mainly implemented to support the SAA6712E's no memory mode. In this mode the input data is sent directly to the output interface, which must synchronize its output timing to get the same frame rate as the input. Additionally it starts generating vertical blanking and synchronization signals at pins PVS and PHS directly after releasing the internal reset.
handbook, halfpage
1 byte
(a)
(b)
MHB261
After the programmed top blanking the output interface enlarges the last blanking line until data from the input interface reaches the output interface. Because too long lines cause counter overflows in the panels, a controlling mechanism exists which changes the length of the blanking, border and active lines according to the timing requirements of the panel and the applied graphics mode. This mode can be enabled by setting the programming register sync_mode to logic 1, otherwise the first free running mode will be selected. The length controlling the blanking, border and active video region can be enabled by asserting blank_ctrl, border_ctrl, and active_ctrl. The output interface also supports a Power-down mode which sets all output signals to logic 0. This will be activated by the programming flag power_down (see section general configuration Table 5). For flicker free switching between different input modes, the output interface is able to set all data outputs to the panel to logic 0, resulting in a black picture. Even if during programming and internal reset no synchronization pulses for the panel are generated and the panel loses the last picture information, the panel still displays black colour, because this is its Idle state. To switch the output interface into this mode blank_tft must be set. To enable the panel interface it must be enabled with out_if_enable. The interface supports single pixel (24 bits) and double pixel (48 bits) output in parallel. The selection between these two modes must be done with single_pixel_output. The active clock edge at PCLK can also be selected by clk_pol.
a: 24 x 24 font definition. b: 12 x 16 font definition.
Fig.16 Character matrix organization.
8.11
Temporal dithering (frame rate controller)
The SAA6712E is able to display true colour (8 bits per colour) on high colour displays (6 bits per colour). The algorithm used is temporal dithering. This feature can be enabled by setting frc_on to logic 1 in the general configuration register block (see Table 5). 8.12 8.12.1 Output interface GENERAL
The output interface is the interface between the SAA6712E and the TFT panel. Its timing parameters can be programmed in a wide range to support panels of many different manufacturers. The output interface can operate in two different modes. The first mode is the free running mode which is adapted to the memory mode of the SAA6712E. In this mode the output is independent from the input at the RGB input interface. So the output frame generation can start directly after releasing the internal reset. For getting a high frame rate the output timing can be programmed to satisfy the minimum timing requirements of the panel.
1999 Aug 25
52
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
8.12.2 FRAME GENERATION
SAA6712E
A maximum value must be programmed in h_max_len which is the upper limit for line lengthening during activated control mechanism. In free running mode all 3 counters should be programmed with the same minimum values. If no border is needed, because the active video region covers the visible area of the panel, the active video length counters should point to the same positions as the border length counters. Then the active video length counters have a higher priority. The border colour inserted by the output interface is the same as the blank colour in the memory interface; blank_colour_red, blank_colour_green, blank_colour_blue.
The output frame contains three main regions: * Blanking region * Border region * Active video region. The blanking region contains all front and back porch as well as the synchronization intervals. The border region is visible on the panel and is used for positioning the active video region inside this visible area. To ensure a great flexibility in the `sync to input' mode there are 3 different horizontal length counters (h_len_blank, h_len_border, h_len_active) with independent length control (see Fig.17).
handbook, full pagewidth
h_hs_start
h_hs_end PHS
h_len_blank
starting point
v_vs_end v_start
blanking
v_active
active video
PVS v_end h_de_start h_active_start
border
h_de_end
h_len_border
h_max_len
MHB262
h_len_active
Fig.17 Output frame and timing.
1999 Aug 25
53
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
8.12.3 TIMING REFERENCE SIGNALS
SAA6712E
The position and length of the horizontal synchronization pulses in an output line must be programmed with h_hs_start and h_hs_end. The vertical synchronization pulse starts at line 0 and ends at v_vs_end. The horizontal start offset in line 0 can be set-up with h_vs_start and the horizontal end offset with h_vs_end. The data qualifier PDE frames the display region that should be visible on the panel horizontally. It will be asserted at h_de_start and it will be de-asserted at h_de_end. It frames both horizontal border and active video region.
The SAA6712E supports three timing reference signals to drive the panels: PVS (vertical synchronization pulse), PHS (horizontal synchronization pulse) and PDE (data qualifier). The polarity of these signals is programmable. To program high polarity the three programming registers (vsync_pol, hsync_pol, de_pol) must be set to logic 1. Sometimes panels require that no data qualifier signals must be active during vertical synchronization. The generation of PDE pulses during active PVS can be switched off by de-asserting sync_de_inact.
9 LIMITING VALUES In accordance with the Absolute Maximum Rating System (IEC 134); all ground pins are connected together and all supply pins are connected together. SYMBOL VDDD VDD(PLL) Vn VSS Tstg Tamb Tamb(bias) Ves Note 1. Human body model: equivalent to discharging a 100 pF capacitor through a 1.5 k resistor. PARAMETER digital supply voltage PLL supply voltage voltage at digital inputs and outputs voltage at digital output voltage difference between VSS(PLL) and VSS(D) storage temperature ambient temperature operating bias ambient temperature electrostatic handling voltage for all pins note 1 outputs active CONDITIONS MIN. -0.5 -0.5 outputs in 3-state -0.5 -0.5 - -65 0 -10 -2 MAX. +4.6 +4.6 +5.5 100 +150 70 +70 +2 V V V mV C C C kV UNIT
VDDD + 0.5 V
1999 Aug 25
54
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
10 CHARACTERISTICS VDDD = 3.0 to 3.6 V; VDD(PLL) = 3.1 to 3.5 V; Tamb = 25 C; unless otherwise specified. SYMBOL Supplies VDDD IDDD PD VDD(PLL) IDD(PLL) PPLL PPLL + D digital supply voltage digital supply current digital power dissipation PLL supply voltage PLL supply current PLL power dissipation digital plus PLL power dissipation 3.0 - - 3.1 - - - 3.3 600 2 3.3 tbf tbf 2 3.6 tbf - 3.5 tbf - - PARAMETER CONDITIONS MIN. TYP.
SAA6712E
MAX.
UNIT
V mA W V mA W W
Digital inputs VIL(SCL, SDA) LOW-level input voltage at pins SDA and SCL VIH(SCL, SDA) HIGH-level input voltage at pins SDA and SCL VIL(LVTTL) VIH(LVTTL) ILI Ci LOW-level input voltage at LVTTL pins HIGH-level input voltage at LVTTL pins input leakage current input capacitance input capacitance at all other inputs Digital outputs VOL(SDA) VOL(CMOS) VOH(CMOS) VOL(LVTTL) VOH(LVTTL) LOW-level output voltage SDA at 3 mA sink current - at pin SDA SDA at 6 mA sink current - LOW-level output voltage at CMOS pins HIGH-level output voltage at CMOS pins LOW-level output voltage at LVTTL pins HIGH-level output voltage at LVTTL pins - 2.4 - 0.85VDDD - - - - - - 0.4 0.6 0.4 - 0.4 - V V V V V V outputs at 3-state -0.5 0.7VDDD -0.5 2.0 - - - - - - - - - - +0.3VDDD V
VDDD + 0.5 V +0.8 V
VDDD + 0.5 V 10 8 5 A pF pF
1999 Aug 25
55
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
11 TIMING CHARACTERISTICS VDDD = 3.0 to 3.6 V; VDD(PLL) = 3.1 to 3.5 V; Tamb = 25 C; see Fig.18; unless otherwise specified. SYMBOL PARAMETER CONDITIONS MIN. - 50 - - 50 TYP.
SAA6712E
MAX.
UNIT
System clock input at pin CLK fCLK fVCLK clock frequency duty factor 24 40 70 60 MHz %
RGB sample clock input at pin VCLK clock frequency duty factor single ADC mode double ADC mode 25 12.5 40 150 75 60 MHz MHz %
Input signals at pins VVS, VHS, VPA7 to VPA0, VPB7 to VPB0, VPC7 to VPC0, VPD7 to VPD0, VPE7 to VPE0, and VPF7 to VPF0 with respect to signal at pin VCLK tsu th th tPD fPCLK set-up time hold time -4.0 7.0 - - - - - 50 - - - 13 ns ns
Output signals at pins CLAMP and GAINC with respect to signal at pin VCLK; note 1 hold time propagation delay 8 - - 40 ns ns
Output clock to panel at pin PCLK clock frequency duty factor 80 60 MHz %
Output signals at pins PVS, PHS, PDE, PAR7 to PAR0, PAG7 to PAG0, PAB7 to PAB0, PBR7 to PBR0, PBG7 to PBG0, and PBB7 to PBB0 with respect to signal at pin PCLK; note 2 th hold time pins PVS, PHS and PDE all other pins tPD propagation delay pins PVS, PHS and PDE all other pins Overlay port clock output at pin OVCLK fOVCLK tsu(i) th(i) th(o) tPD(o) clock frequency duty factor 40 50 - - - - 80 60 - - - 1.0 MHz % - - - - 1 3.5 ns ns -0.5 0 - - - - ns ns
Input signals at pins OVACT, OVA2 to OVA0, and OVB2 to OVB0 with respect to signal at pin OVCLK set-up time hold time 6.0 -3.0 -1.0 - ns ns
Output signals at pins OVVS and OVHS with respect to signal at pin OVCLK; note 1 hold time propagation delay ns ns
1999 Aug 25
56
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
SYMBOL
PARAMETER
CONDITIONS - -
MIN. - -
TYP.
MAX.
UNIT
Memory port clock output; pin MCLKO fMCLKO CL fMCLKI tPD tsu th frequency load capacitance duty factor 125 20 60 MHz pF %
40 - 40 6.5
50 - 50
Input signal at pin MCLKI with respect to signal at pin MCLKO; see Fig.19 frequency duty factor propagation delay 125 60 10 - - - - MHz % ns
Input signals at pins DQ63 to DQ0 with respect to the negative edge of signal at pin MCLKO set-up time hold time 6.0 -3.0 ns ns
Output signals at pins DQ63 to DQ0, RAS, CAS, WE, A10 to A0, and BA with respect to the negative edge of signal at pin MCLKO; note 3 th hold time pins DQ63 to DQ0 pins RAS, CAS, WE, A10 to A0, and BA tPD propagation delay pins DQ63 to DQ0 pins RAS, CAS, WE, A10 to A0, and BA Notes 1. CL = 15pF, Io = 2 mA and RL = 2 k. 2. CL = 15pF, Io = 4 mA and RL = 2 k. 3. CL = 10pF, Io = 4 mA and RL = 2 k. - - - - 1.0 1.0 ns ns -1 0 - - - - ns ns
1999 Aug 25
57
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
handbook, full pagewidth
clock input
1.5 V
data input tsu(i) th(i) data output data valid th(o) tPD(o) data transition period
MHB490
tsu(i): input set-up time; data input must be stable before active clock edge. th(i): input hold time; data input must be stable after active clock edge. tPD(o): output propagation delay; output data becomes stable with respect to active clock edge. th(o): output hold time; output data stays stable with respect to active clock edge.
Fig.18 Data timing diagram.
handbook, full pagewidth
MCLKI
1.5 V
MCLKO
tPD
MHB491
Fig.19 Memory clock timing.
1999 Aug 25
58
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
12 APPLICATION INFORMATION
SAA6712E
handbook, full pagewidth
SDRAM 16 MBits
SDRAM 16 MBits
SDRAM 16 MBits
EEPROM
RGB VGA PORT TDA8752 SAA6712E MICROCONTROLLER P87C695
I2C-bus
PANEL PORT
USB
MHB457
Fig.20 Test board.
1999 Aug 25
59
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
13 PACKAGE OUTLINE BGA292: plastic ball grid array package; 292 balls; body 27 x 27 x 1.75 mm
D D1
SAA6712E
SOT489-1
ball A1 corner A2 E1 E detail X A1 A
k
k e
Y W V U T R P N M L K J H G F E D C B A 2 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
ZD b
w M
A vA ZE y
e
20
X 10 scale 20 mm
0
DIMENSIONS (mm are the original dimensions) UNIT mm A max. 2.46 A1 0.70 0.50 A2 1.85 1.62 b 0.90 0.60 D 27.2 26.8 D1 24.7 24.0 E 27.2 26.8 E1 24.7 24.0 e 1.27 k 4.0 3.9 v 0.35 w 0.3 y 0.15 ZD 1.84 1.04 ZE 1.84 1.04
OUTLINE VERSION SOT489-1
REFERENCES IEC JEDEC EIAJ
EUROPEAN PROJECTION
ISSUE DATE 98-05-06
1999 Aug 25
60
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
14 SOLDERING 14.1 Introduction to soldering surface mount packages
SAA6712E
If wave soldering is used the following conditions must be observed for optimal results: * Use a double-wave soldering method comprising a turbulent wave with high upward pressure followed by a smooth laminar wave. * For packages with leads on two sides and a pitch (e): - larger than or equal to 1.27 mm, the footprint longitudinal axis is preferred to be parallel to the transport direction of the printed-circuit board; - smaller than 1.27 mm, the footprint longitudinal axis must be parallel to the transport direction of the printed-circuit board. The footprint must incorporate solder thieves at the downstream end. * For packages with leads on four sides, the footprint must be placed at a 45 angle to the transport direction of the printed-circuit board. The footprint must incorporate solder thieves downstream and at the side corners. During placement and before soldering, the package must be fixed with a droplet of adhesive. The adhesive can be applied by screen printing, pin transfer or syringe dispensing. The package can be soldered after the adhesive is cured. Typical dwell time is 4 seconds at 250 C. A mildly-activated flux will eliminate the need for removal of corrosive residues in most applications. 14.4 Manual soldering
This text gives a very brief insight to a complex technology. A more in-depth account of soldering ICs can be found in our "Data Handbook IC26; Integrated Circuit Packages" (document order number 9398 652 90011). There is no soldering method that is ideal for all surface mount IC packages. Wave soldering is not always suitable for surface mount ICs, or for printed-circuit boards with high population densities. In these situations reflow soldering is often used. 14.2 Reflow soldering
Reflow soldering requires solder paste (a suspension of fine solder particles, flux and binding agent) to be applied to the printed-circuit board by screen printing, stencilling or pressure-syringe dispensing before package placement. Several methods exist for reflowing; for example, infrared/convection heating in a conveyor type oven. Throughput times (preheating, soldering and cooling) vary between 100 and 200 seconds depending on heating method. Typical reflow peak temperatures range from 215 to 250 C. The top-surface temperature of the packages should preferable be kept below 230 C. 14.3 Wave soldering
Conventional single wave soldering is not recommended for surface mount devices (SMDs) or printed-circuit boards with a high component density, as solder bridging and non-wetting can present major problems. To overcome these problems the double-wave soldering method was specifically developed.
Fix the component by first soldering two diagonally-opposite end leads. Use a low voltage (24 V or less) soldering iron applied to the flat part of the lead. Contact time must be limited to 10 seconds at up to 300 C. When using a dedicated tool, all other leads can be soldered in one operation within 2 to 5 seconds between 270 and 320 C.
1999 Aug 25
61
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
14.5 Suitability of surface mount IC packages for wave and reflow soldering methods SOLDERING METHOD PACKAGE WAVE BGA, SQFP HLQFP, HSQFP, HSOP, SMS PLCC(3), SO, SOJ LQFP, QFP, TQFP SSOP, TSSOP, VSO Notes not suitable not not not suitable(2) recommended(3)(4) recommended(5) suitable suitable suitable suitable suitable suitable
SAA6712E
REFLOW(1)
1. All surface mount (SMD) packages are moisture sensitive. Depending upon the moisture content, the maximum temperature (with respect to time) and body size of the package, there is a risk that internal or external package cracks may occur due to vaporization of the moisture in them (the so called popcorn effect). For details, refer to the Drypack information in the "Data Handbook IC26; Integrated Circuit Packages; Section: Packing Methods". 2. These packages are not suitable for wave soldering as a solder joint between the printed-circuit board and heatsink (at bottom version) can not be achieved, and as solder may stick to the heatsink (on top version). 3. If wave soldering is considered, then the package must be placed at a 45 angle to the solder wave direction. The package footprint must incorporate solder thieves downstream and at the side corners. 4. Wave soldering is only suitable for LQFP, TQFP and QFP packages with a pitch (e) equal to or larger than 0.8 mm; it is definitely not suitable for packages with a pitch (e) equal to or smaller than 0.65 mm. 5. Wave soldering is only suitable for SSOP and TSSOP packages with a pitch (e) equal to or larger than 0.65 mm; it is definitely not suitable for packages with a pitch (e) equal to or smaller than 0.5 mm.
1999 Aug 25
62
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
15 DEFINITIONS Data sheet status Objective specification Preliminary specification Product specification Limiting values
SAA6712E
This data sheet contains target or goal specifications for product development. This data sheet contains preliminary data; supplementary data may be published later. This data sheet contains final product specifications.
Limiting values given are in accordance with the Absolute Maximum Rating System (IEC 134). Stress above one or more of the limiting values may cause permanent damage to the device. These are stress ratings only and operation of the device at these or at any other conditions above those given in the Characteristics sections of the specification is not implied. Exposure to limiting values for extended periods may affect device reliability. Application information Where application information is given, it is advisory and does not form part of the specification. 16 LIFE SUPPORT APPLICATIONS These products are not designed for use in life support appliances, devices, or systems where malfunction of these products can reasonably be expected to result in personal injury. Philips customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Philips for any damages resulting from such improper use or sale. 17 PURCHASE OF PHILIPS I2C COMPONENTS
Purchase of Philips I2C components conveys a license under the Philips' I2C patent to use the components in the I2C system provided the system conforms to the I2C specification defined by Philips. This specification can be ordered using the code 9398 393 40011.
1999 Aug 25
63
Philips Semiconductors - a worldwide company
Argentina: see South America Australia: 3 Figtree Drive, HOMEBUSH, NSW 2140, Tel. +61 2 9704 8141, Fax. +61 2 9704 8139 Austria: Computerstr. 6, A-1101 WIEN, P.O. Box 213, Tel. +43 1 60 101 1248, Fax. +43 1 60 101 1210 Belarus: Hotel Minsk Business Center, Bld. 3, r. 1211, Volodarski Str. 6, 220050 MINSK, Tel. +375 172 20 0733, Fax. +375 172 20 0773 Belgium: see The Netherlands Brazil: see South America Bulgaria: Philips Bulgaria Ltd., Energoproject, 15th floor, 51 James Bourchier Blvd., 1407 SOFIA, Tel. +359 2 68 9211, Fax. +359 2 68 9102 Canada: PHILIPS SEMICONDUCTORS/COMPONENTS, Tel. +1 800 234 7381, Fax. +1 800 943 0087 China/Hong Kong: 501 Hong Kong Industrial Technology Centre, 72 Tat Chee Avenue, Kowloon Tong, HONG KONG, Tel. +852 2319 7888, Fax. +852 2319 7700 Colombia: see South America Czech Republic: see Austria Denmark: Sydhavnsgade 23, 1780 COPENHAGEN V, Tel. +45 33 29 3333, Fax. +45 33 29 3905 Finland: Sinikalliontie 3, FIN-02630 ESPOO, Tel. +358 9 615 800, Fax. +358 9 6158 0920 France: 51 Rue Carnot, BP317, 92156 SURESNES Cedex, Tel. +33 1 4099 6161, Fax. +33 1 4099 6427 Germany: Hammerbrookstrae 69, D-20097 HAMBURG, Tel. +49 40 2353 60, Fax. +49 40 2353 6300 Hungary: see Austria India: Philips INDIA Ltd, Band Box Building, 2nd floor, 254-D, Dr. Annie Besant Road, Worli, MUMBAI 400 025, Tel. +91 22 493 8541, Fax. +91 22 493 0966 Indonesia: PT Philips Development Corporation, Semiconductors Division, Gedung Philips, Jl. Buncit Raya Kav.99-100, JAKARTA 12510, Tel. +62 21 794 0040 ext. 2501, Fax. +62 21 794 0080 Ireland: Newstead, Clonskeagh, DUBLIN 14, Tel. +353 1 7640 000, Fax. +353 1 7640 200 Israel: RAPAC Electronics, 7 Kehilat Saloniki St, PO Box 18053, TEL AVIV 61180, Tel. +972 3 645 0444, Fax. +972 3 649 1007 Italy: PHILIPS SEMICONDUCTORS, Via Casati, 23 - 20052 MONZA (MI), Tel. +39 039 203 6838, Fax +39 039 203 6800 Japan: Philips Bldg 13-37, Kohnan 2-chome, Minato-ku, TOKYO 108-8507, Tel. +81 3 3740 5130, Fax. +81 3 3740 5057 Korea: Philips House, 260-199 Itaewon-dong, Yongsan-ku, SEOUL, Tel. +82 2 709 1412, Fax. +82 2 709 1415 Malaysia: No. 76 Jalan Universiti, 46200 PETALING JAYA, SELANGOR, Tel. +60 3 750 5214, Fax. +60 3 757 4880 Mexico: 5900 Gateway East, Suite 200, EL PASO, TEXAS 79905, Tel. +9-5 800 234 7381, Fax +9-5 800 943 0087 Middle East: see Italy Netherlands: Postbus 90050, 5600 PB EINDHOVEN, Bldg. VB, Tel. +31 40 27 82785, Fax. +31 40 27 88399 New Zealand: 2 Wagener Place, C.P.O. Box 1041, AUCKLAND, Tel. +64 9 849 4160, Fax. +64 9 849 7811 Norway: Box 1, Manglerud 0612, OSLO, Tel. +47 22 74 8000, Fax. +47 22 74 8341 Pakistan: see Singapore Philippines: Philips Semiconductors Philippines Inc., 106 Valero St. Salcedo Village, P.O. Box 2108 MCC, MAKATI, Metro MANILA, Tel. +63 2 816 6380, Fax. +63 2 817 3474 Poland: Ul. Lukiska 10, PL 04-123 WARSZAWA, Tel. +48 22 612 2831, Fax. +48 22 612 2327 Portugal: see Spain Romania: see Italy Russia: Philips Russia, Ul. Usatcheva 35A, 119048 MOSCOW, Tel. +7 095 755 6918, Fax. +7 095 755 6919 Singapore: Lorong 1, Toa Payoh, SINGAPORE 319762, Tel. +65 350 2538, Fax. +65 251 6500 Slovakia: see Austria Slovenia: see Italy South Africa: S.A. PHILIPS Pty Ltd., 195-215 Main Road Martindale, 2092 JOHANNESBURG, P.O. Box 58088 Newville 2114, Tel. +27 11 471 5401, Fax. +27 11 471 5398 South America: Al. Vicente Pinzon, 173, 6th floor, 04547-130 SAO PAULO, SP, Brazil, Tel. +55 11 821 2333, Fax. +55 11 821 2382 Spain: Balmes 22, 08007 BARCELONA, Tel. +34 93 301 6312, Fax. +34 93 301 4107 Sweden: Kottbygatan 7, Akalla, S-16485 STOCKHOLM, Tel. +46 8 5985 2000, Fax. +46 8 5985 2745 Switzerland: Allmendstrasse 140, CH-8027 ZURICH, Tel. +41 1 488 2741 Fax. +41 1 488 3263 Taiwan: Philips Semiconductors, 6F, No. 96, Chien Kuo N. Rd., Sec. 1, TAIPEI, Taiwan Tel. +886 2 2134 2886, Fax. +886 2 2134 2874 Thailand: PHILIPS ELECTRONICS (THAILAND) Ltd., 209/2 Sanpavuth-Bangna Road Prakanong, BANGKOK 10260, Tel. +66 2 745 4090, Fax. +66 2 398 0793 Turkey: Yukari Dudullu, Org. San. Blg., 2.Cad. Nr. 28 81260 Umraniye, ISTANBUL, Tel. +90 216 522 1500, Fax. +90 216 522 1813 Ukraine: PHILIPS UKRAINE, 4 Patrice Lumumba str., Building B, Floor 7, 252042 KIEV, Tel. +380 44 264 2776, Fax. +380 44 268 0461 United Kingdom: Philips Semiconductors Ltd., 276 Bath Road, Hayes, MIDDLESEX UB3 5BX, Tel. +44 208 730 5000, Fax. +44 208 754 8421 United States: 811 East Arques Avenue, SUNNYVALE, CA 94088-3409, Tel. +1 800 234 7381, Fax. +1 800 943 0087 Uruguay: see South America Vietnam: see Singapore Yugoslavia: PHILIPS, Trg N. Pasica 5/v, 11000 BEOGRAD, Tel. +381 11 62 5344, Fax.+381 11 63 5777
For all other countries apply to: Philips Semiconductors, International Marketing & Sales Communications, Building BE-p, P.O. Box 218, 5600 MD EINDHOVEN, The Netherlands, Fax. +31 40 27 24825 (c) Philips Electronics N.V. 1999
Internet: http://www.semiconductors.philips.com
SCA 67
All rights are reserved. Reproduction in whole or in part is prohibited without the prior written consent of the copyright owner. The information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed without notice. No liability will be accepted by the publisher for any consequence of its use. Publication thereof does not convey nor imply any license under patent- or other industrial or intellectual property rights.
Printed in The Netherlands
545004/01/pp64
Date of release: 1999
Aug 25
Document order number:
9397 750 04715


▲Up To Search▲   

 
Price & Availability of SAA6712E

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X